mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-26 10:43:47 +08:00
a4dc2b872b
This implements a `fish_opt` command that provides a way for people to create option specs for the `argparse` command as an alternative to creating such strings by hand. Fixes #4190
12 lines
630 B
Plaintext
12 lines
630 B
Plaintext
# no args is an error
|
|
fish_opt: The --short flag is required and must be a single character
|
|
# no short flag or an invalid short flag is an error
|
|
fish_opt: The --short flag is required and must be a single character
|
|
fish_opt: The --short flag is required and must be a single character
|
|
# a required and optional arg makes no sense
|
|
fish_opt: Mutually exclusive flags 'o/optional-val' and `r/required-val` seen
|
|
# a repeated and optional arg makes no sense
|
|
fish_opt: Mutually exclusive flags 'multiple-vals' and `o/optional-val` seen
|
|
# an unexpected arg not associated with a flag is an error
|
|
fish_opt: Expected at most 0 args, got 1
|