mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 15:40:19 +00:00
UserspaceEmulator: Stop parsing options on first non-option
This commit is contained in:
parent
001c81b1be
commit
a32fe8df33
Notes:
sideshowbarker
2024-07-18 12:38:57 +09:00
Author: https://github.com/gmta Commit: https://github.com/SerenityOS/serenity/commit/a32fe8df331 Pull-request: https://github.com/SerenityOS/serenity/pull/7896 Reviewed-by: https://github.com/awesomekling
1 changed files with 1 additions and 0 deletions
|
@ -22,6 +22,7 @@ int main(int argc, char** argv, char** env)
|
|||
Vector<String> arguments;
|
||||
|
||||
Core::ArgsParser parser;
|
||||
parser.set_stop_on_first_non_option(true);
|
||||
parser.add_option(g_report_to_debug, "Write reports to the debug log", "report-to-debug", 0);
|
||||
parser.add_positional_argument(arguments, "Command to emulate", "command");
|
||||
parser.parse(argc, argv);
|
||||
|
|
Loading…
Reference in a new issue