Fixed command line argument parsing bug.
This commit is contained in:
parent
785136f7cc
commit
bec0c12ac6
1 changed files with 0 additions and 2 deletions
|
@ -243,8 +243,6 @@ void Util::Config::parseArgs(int & argc, char ** & argv){
|
|||
for (JSON::ObjIter it = vals.ObjBegin(); it != vals.ObjEnd(); it++){
|
||||
if (it->second.isMember("arg_num") && it->second["arg_num"].asInt() == long_i){
|
||||
it->second["value"].append((std::string)argv[optind]);
|
||||
optind++;
|
||||
long_i++;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue