update command line argument parsing

fix ignoring single letter arguments
This commit is contained in:
Rutwik Choughule 2021-11-30 23:42:19 +05:30
parent 471dd47f84
commit 11de19f00c

View File

@ -100,7 +100,7 @@ inline int stringRemoveDelimiter(char delimiter, const char *string) {
string_start++;
}
if (string_start >= static_cast<int>(strlen(string) - 1)) {
if (string_start >= static_cast<int>(strlen(string))) {
return 0;
}