Files
fish-shell/doc_src/cmds
Isaac Oscar Gariano f780b01ac9 Added way to tell argparse to delete an option from $argv_opts.
The intention is that if you want to parse some of your options verbatim to
another command, but you want to modfy other options (e.g. change their value,
convert them to other options, or delete them entirely), you mark the options
you want to modify with an &, and argparse will not add them to argv_opts. You
can then call the other command with argv_opts together with any new/modified
options, ensuring that the other command doesn't set the pre-modified options.
As with other known options, & options will be removed from $argv, and have
their $_flag_ variables set.

The `&` goes at the end of the option spec, or if the option spec contains a
validation script, immediately before the `!`. There is also now a -d/--delete
flag to fish_opt that will generate such an option spec.

See the changes in doc_src/cmds/argparse.rst for more details and an example use
case.
2025-08-29 23:10:02 +10:00
..
2025-02-11 22:51:06 +08:00
2024-09-18 22:11:14 +02:00
2023-06-05 18:26:13 +02:00
2025-05-16 00:30:34 +02:00
2024-04-23 19:36:11 +02:00
2025-03-30 19:42:00 +02:00
2022-03-12 00:21:13 +08:00
2022-03-12 00:21:13 +08:00
2025-04-11 15:11:22 +02:00
2025-04-11 17:29:22 +02:00
2025-03-30 19:42:00 +02:00
2023-01-09 20:33:37 +01:00
2023-02-28 20:49:11 +01:00
2022-10-19 20:10:26 +02:00
2024-06-23 17:45:52 -05:00
2025-06-05 14:10:47 +02:00
2022-03-12 00:21:13 +08:00
2022-03-12 00:21:13 +08:00
2022-03-12 00:21:13 +08:00
2024-09-14 10:29:44 +02:00
2025-03-15 16:36:13 +01:00
2025-05-28 17:09:13 +02:00
2025-01-06 19:40:30 -06:00
2025-01-06 19:40:30 -06:00
2025-05-28 17:09:13 +02:00
2022-03-12 00:21:13 +08:00
2023-01-09 20:33:37 +01:00
2022-09-17 21:31:06 +08:00
2022-03-12 00:21:13 +08:00
2024-09-18 22:11:14 +02:00