浏览代码

UserspaceEmulator: Stop parsing options on first non-option

Jelle Raaijmakers 4 年之前
父节点
当前提交
a32fe8df33
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      Userland/DevTools/UserspaceEmulator/main.cpp

+ 1 - 0
Userland/DevTools/UserspaceEmulator/main.cpp

@@ -22,6 +22,7 @@ int main(int argc, char** argv, char** env)
     Vector<String> arguments;
     Vector<String> arguments;
 
 
     Core::ArgsParser parser;
     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_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.add_positional_argument(arguments, "Command to emulate", "command");
     parser.parse(argc, argv);
     parser.parse(argc, argv);