diff options
author | Tim Schumacher <timschumi@gmx.de> | 2022-03-09 19:35:27 +0100 |
---|---|---|
committer | Ali Mohammad Pur <Ali.mpfard@gmail.com> | 2022-03-11 08:41:21 +0330 |
commit | 83609adbdf0f0e914d63b5eb56f4e43ef5fab990 (patch) | |
tree | f22c1e488ee65f256d4e0b93cd19826f1db8c426 /Userland/Shell | |
parent | 1770534d947246a3822b68d302a483be60a56ea1 (diff) | |
download | serenity-83609adbdf0f0e914d63b5eb56f4e43ef5fab990.zip |
Shell: Stop parsing options after the script name
Diffstat (limited to 'Userland/Shell')
-rw-r--r-- | Userland/Shell/main.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
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<int> 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) { |