fish-shell/tests/fish_opt.err
Kurtis Rader a4dc2b872b implement fish_opt helper command
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
2017-07-12 22:38:32 -07:00

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