Fix program option parsing

This fixes the program option parsing.
This commit is contained in:
Michael Insel 2018-06-12 19:02:48 +02:00
parent eee30750d5
commit e885cf71c6
1 changed files with 1 additions and 1 deletions

View File

@ -186,7 +186,7 @@ bool CLICommand::ParseCommand(int argc, char **argv, po::options_description& vi
std::vector<String>::size_type i;
int k;
for (i = 0, k = 1; i < vname.size() && k < argc; i++, k++) {
if (strncmp(argv[k], "--", 2) == 0) {
if (strncmp(argv[k], "-", 1) == 0 || strncmp(argv[k], "--", 2) == 0) {
i--;
continue;
}