diff --git a/Userland/Shell/main.cpp b/Userland/Shell/main.cpp index 8ce039b4b7..42d1ad2a5a 100644 --- a/Userland/Shell/main.cpp +++ b/Userland/Shell/main.cpp @@ -174,6 +174,7 @@ ErrorOr serenity_main(Main::Arguments arguments) parser.add_positional_argument(file_to_read_from, "File to read commands from", "file", Core::ArgsParser::Required::No); parser.add_positional_argument(script_args, "Extra arguments to pass to the script (via $* and co)", "argument", Core::ArgsParser::Required::No); + parser.set_stop_on_first_non_option(true); parser.parse(arguments); if (format) {