diff --git a/application/argumentparser.cpp b/application/argumentparser.cpp index 5201663..c514755 100644 --- a/application/argumentparser.cpp +++ b/application/argumentparser.cpp @@ -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; } }