Shell: Stop parsing options after the script name

This commit is contained in:
Tim Schumacher 2022-03-09 19:35:27 +01:00 committed by Ali Mohammad Pur
parent 1770534d94
commit 83609adbdf

View file

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