UserspaceEmulator: Stop parsing options on first non-option

This commit is contained in:
Jelle Raaijmakers 2021-06-07 21:51:08 +02:00 committed by Andreas Kling
parent 001c81b1be
commit a32fe8df33
Notes: sideshowbarker 2024-07-18 12:38:57 +09:00

View file

@ -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);