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 8cb4970 commit f388d17Copy full SHA for f388d17
lldb/source/Interpreter/Options.cpp
@@ -1436,10 +1436,11 @@ llvm::Expected<Args> Options::Parse(const Args &args,
1436
} else {
1437
error.SetErrorStringWithFormat("invalid option with value '%i'", val);
1438
}
1439
- if (error.Fail())
1440
- return error.ToError();
1441
1442
+ if (error.Fail())
+ return error.ToError();
1443
+
1444
argv.erase(argv.begin(), argv.begin() + OptionParser::GetOptionIndex());
1445
return ReconstituteArgsAfterParsing(argv, args);
1446
0 commit comments