2017-08-04 19:01:16 +00:00
|
|
|
|
|
|
|
####################
|
|
|
|
# No args is an error
|
2017-07-10 03:03:26 +00:00
|
|
|
fish_opt: The --short flag is required and must be a single character
|
2017-08-04 19:01:16 +00:00
|
|
|
|
|
|
|
####################
|
|
|
|
# No short flag or an invalid short flag is an error
|
2017-07-10 03:03:26 +00:00
|
|
|
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
|
2017-08-04 19:01:16 +00:00
|
|
|
|
|
|
|
####################
|
|
|
|
# A required and optional arg makes no sense
|
2017-07-10 03:03:26 +00:00
|
|
|
fish_opt: Mutually exclusive flags 'o/optional-val' and `r/required-val` seen
|
2017-08-04 19:01:16 +00:00
|
|
|
|
|
|
|
####################
|
|
|
|
# A repeated and optional arg makes no sense
|
2017-07-10 03:03:26 +00:00
|
|
|
fish_opt: Mutually exclusive flags 'multiple-vals' and `o/optional-val` seen
|
2017-08-04 19:01:16 +00:00
|
|
|
|
|
|
|
####################
|
|
|
|
# An unexpected arg not associated with a flag is an error
|
2017-07-10 03:03:26 +00:00
|
|
|
fish_opt: Expected at most 0 args, got 1
|
2017-08-04 19:01:16 +00:00
|
|
|
|
|
|
|
####################
|
|
|
|
# Bool, short only
|
|
|
|
|
|
|
|
####################
|
|
|
|
# Bool, short and long
|
|
|
|
|
|
|
|
####################
|
|
|
|
# Bool, short and long but the short var cannot be used
|
|
|
|
|
|
|
|
####################
|
|
|
|
# Required val, short and long but the short var cannot be used
|
|
|
|
|
|
|
|
####################
|
|
|
|
# Optional val, short and long valid
|
|
|
|
|
|
|
|
####################
|
|
|
|
# Optional val, short and long but the short var cannot be used
|
|
|
|
|
|
|
|
####################
|
|
|
|
# Repeated val, short and long valid
|
|
|
|
|
|
|
|
####################
|
|
|
|
# Repeated val, short and long but short not valid
|
|
|
|
|
|
|
|
####################
|
|
|
|
# Repeated val, short only
|