We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7693bce commit 3049bb6Copy full SHA for 3049bb6
OptionParser.cpp
@@ -237,11 +237,16 @@ Option::parse(vector<string> &command_line) {
237
format_option(command_line[i + 1]);
238
}
239
else {
240
+ // this will only work if it's a bool, because the
241
+ // format_option function will ignore the argument
242
format_option(dummy);
243
244
245
specified = true;
246
+ // remove this option from the set of options
247
command_line.erase(command_line.begin() + i);
248
+ // if there was an argument (i.e. non bool) then remove that
249
+ // argument also
250
if (arg_type != SMITHLAB_ARG_BOOL) {
251
252
0 commit comments