mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 12:35:00 +00:00
Shell: Stop parsing options after the script name
This commit is contained in:
parent
1770534d94
commit
83609adbdf
1 changed files with 1 additions and 0 deletions
|
@ -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(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.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);
|
parser.parse(arguments);
|
||||||
|
|
||||||
if (format) {
|
if (format) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue