fixed that values for arguments denoting operations aren't accepted

This commit is contained in:
Martchus 2015-06-24 00:48:45 +02:00
parent f335c262b2
commit c891cf5b36
1 changed files with 4 additions and 0 deletions

View File

@ -464,6 +464,10 @@ void ArgumentParser::parseArgs(int argc, char *argv[])
}
}
if(currentArg) {
currentArg->m_present = true;
++actualArgc; // we actually found an argument
// now we might need to read values tied to that argument
valuesToRead = currentArg->requiredValueCount();
continue;
}
}