Files
fish-shell/doc_src/cmds
Isaac Oscar Gariano 663430a925 Added support to fish_opt for defining a long flag with no short flag.
Specifically, this now makes the -s/--short option to fish_opt optional when the
-l/--long option is given. This commit does not modify argparse, as it already
supports defining long flags without a corresponding short flag, however
fish_opt would never take advantage of this feature.

Note that due to a limitation in argparse, fish_opt will give an error if you
try to define a one-character --long flag without also providing a --short
option.

For backwards compatibility, the --long-only flag is still included with
fish_opt, and when used with -s/--short, will behave as before (the short flag
is still defined, but argparse will fail if it is actually used by the parsed
arguments, moreover the _flag_ option variables will not be defined). This can
however be used to define a one character long flag.
2025-08-30 01:55:56 +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