Commit 8f985b22 authored by a-chmil's avatar a-chmil
Browse files

revert arg parsing changes

parent 66de3b3a
......@@ -16,24 +16,23 @@ Config::Config(int argc, char **argv)
while (i<argc) {
std::string arg(argv[i]);
if(mode_==UNSET) {
if (arg == "--help") {
mode_ = HELP;
break;
} else if (arg == "--version") {
mode_ = VERSION;
break;
} else if (arg == "-b") {
dynamic_balance_ = true;
if (arg=="--help") {
mode_=HELP;
break;
} else if (arg=="--version") {
mode_=VERSION;
break;
} else if (arg=="-b"){
dynamic_balance_ = true;
} else {
if (mode_==UNSET) {
mode_=NORMAL;
fp_path_=arg;
} else {
if (mode_ == UNSET) {
mode_ = NORMAL;
fp_path_ = arg;
}
argv_.push_back(arg);
}
} else {
argv_.push_back(arg);
}
i++;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment