fixed setted option even if the possible parameter was not correct.
This commit is contained in:
parent
211c834117
commit
f743409653
|
@ -124,6 +124,7 @@ int CmdLO_Parse(int argc, char** argv) {
|
|||
}
|
||||
}
|
||||
if (cnode->option->possibleparametercount == j) {
|
||||
cnode->option->set = 0;
|
||||
fprintf(stderr,
|
||||
"CmdLineOptions: Parameter '%s' is not allowed, parameter not added.\n",
|
||||
argv[i]);
|
||||
|
|
Loading…
Reference in New Issue