We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 153404b commit 6008f5fCopy full SHA for 6008f5f
1 file changed
main.cpp
@@ -2080,7 +2080,7 @@ std::vector<std::string> normalizeArgs(std::vector<std::string>& args) {
2080
if (args[i].at(0) == '/') { // if it starts with a /
2081
args[i].at(0) = '-'; // then set it to - to normalize the argument, so /help turns into -help
2082
} else if (args[i].at(0) == '-') { // if it starts with a -
2083
- if (args[i].at(1) == '-') { // then check if the person put another - like --help
+ if (args[i].size() > 1 && args[i].at(1) == '-') { // then check if the person put another - like --help
2084
args[i].erase(0, 1); // if so then delete first char and it turns into -help
2085
} else {
2086
// do nothing
0 commit comments