From c891cf5b36a7ea6ff32aaeb012950cb88c5cc7fb Mon Sep 17 00:00:00 2001 From: Martchus Date: Wed, 24 Jun 2015 00:48:45 +0200 Subject: [PATCH] fixed that values for arguments denoting operations aren't accepted --- application/argumentparser.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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; } }