fixed setted option even if the possible parameter was not correct.

This commit is contained in:
Marcel 2014-03-09 16:46:26 +00:00
parent 211c834117
commit f743409653
1 changed files with 1 additions and 0 deletions

View File

@ -124,6 +124,7 @@ int CmdLO_Parse(int argc, char** argv) {
} }
} }
if (cnode->option->possibleparametercount == j) { if (cnode->option->possibleparametercount == j) {
cnode->option->set = 0;
fprintf(stderr, fprintf(stderr,
"CmdLineOptions: Parameter '%s' is not allowed, parameter not added.\n", "CmdLineOptions: Parameter '%s' is not allowed, parameter not added.\n",
argv[i]); argv[i]);