mirror of
https://github.com/fish-shell/fish-shell
synced 2024-11-14 08:58:01 +00: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
11 lines
630 B
Text
11 lines
630 B
Text
# 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
|