mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-25 04:13:08 +00:00
52 lines
978 B
Text
52 lines
978 B
Text
|
|
####################
|
|
# No args is an error
|
|
|
|
####################
|
|
# No short flag or an invalid short flag is an error
|
|
|
|
####################
|
|
# A required and optional arg makes no sense
|
|
|
|
####################
|
|
# A repeated and optional arg makes no sense
|
|
|
|
####################
|
|
# An unexpected arg not associated with a flag is an error
|
|
|
|
####################
|
|
# Bool, short only
|
|
h
|
|
|
|
####################
|
|
# Bool, short and long
|
|
h/help
|
|
|
|
####################
|
|
# Bool, short and long but the short var cannot be used
|
|
h-help
|
|
|
|
####################
|
|
# Required val, short and long but the short var cannot be used
|
|
h-help=
|
|
|
|
####################
|
|
# Optional val, short and long valid
|
|
h/help=?
|
|
|
|
####################
|
|
# Optional val, short and long but the short var cannot be used
|
|
h-help=?
|
|
|
|
####################
|
|
# Repeated val, short and long valid
|
|
h/help=+
|
|
|
|
####################
|
|
# Repeated val, short and long but short not valid
|
|
h-help=+
|
|
|
|
####################
|
|
# Repeated val, short only
|
|
h=+
|
|
h=+
|