mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-17 02:41:15 -03:00
argparse: Fix -- regression
I was a tad overzealous there with not appending the remaining arguments. Weird that we didn't test it, though. Fixes #5857.
This commit is contained in:
@@ -634,10 +634,8 @@ static int argparse_parse_args(argparse_cmd_opts_t &opts, const wcstring_list_t
|
||||
retval = check_for_mutually_exclusive_flags(opts, streams);
|
||||
if (retval != STATUS_CMD_OK) return retval;
|
||||
|
||||
if (opts.stop_nonopt) {
|
||||
for (int i = optind; argv[i]; i++) {
|
||||
opts.argv.push_back(argv[i]);
|
||||
}
|
||||
for (int i = optind; argv[i]; i++) {
|
||||
opts.argv.push_back(argv[i]);
|
||||
}
|
||||
|
||||
return STATUS_CMD_OK;
|
||||
|
||||
Reference in New Issue
Block a user