From a32fe8df331bf25f4705a0648e5b08a3f510fed0 Mon Sep 17 00:00:00 2001 From: Jelle Raaijmakers Date: Mon, 7 Jun 2021 21:51:08 +0200 Subject: UserspaceEmulator: Stop parsing options on first non-option --- Userland/DevTools/UserspaceEmulator/main.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'Userland/DevTools/UserspaceEmulator') diff --git a/Userland/DevTools/UserspaceEmulator/main.cpp b/Userland/DevTools/UserspaceEmulator/main.cpp index 5d341969d0..bf4faa3a30 100644 --- a/Userland/DevTools/UserspaceEmulator/main.cpp +++ b/Userland/DevTools/UserspaceEmulator/main.cpp @@ -22,6 +22,7 @@ int main(int argc, char** argv, char** env) Vector 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); -- cgit v1.2.3