mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-12-13 01:03:47 +08:00
53 lines
978 B
Plaintext
53 lines
978 B
Plaintext
|
|
####################
|
|
# 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=+
|