parent
3064a82156
commit
0321ef9bb2
1 changed files with 7 additions and 0 deletions
|
@ -220,6 +220,13 @@ static void initAndRun(int argc, char * * argv)
|
||||||
string value = *i;
|
string value = *i;
|
||||||
settings.set(name, value);
|
settings.set(name, value);
|
||||||
}
|
}
|
||||||
|
else if (arg == "--arg" || arg == "--argstr") {
|
||||||
|
remaining.push_back(arg);
|
||||||
|
++i; if (i == args.end()) throw UsageError(format("`%1%' requires two arguments") % arg);
|
||||||
|
remaining.push_back(*i);
|
||||||
|
++i; if (i == args.end()) throw UsageError(format("`%1%' requires two arguments") % arg);
|
||||||
|
remaining.push_back(*i);
|
||||||
|
}
|
||||||
else remaining.push_back(arg);
|
else remaining.push_back(arg);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue