#42 android: Force global options before the command
This commit is contained in:
parent
f15297fb78
commit
810b6233fc
3
_android
3
_android
|
@ -51,9 +51,8 @@ _android() {
|
||||||
|
|
||||||
android_cmd="$words[1]"
|
android_cmd="$words[1]"
|
||||||
|
|
||||||
# FIXME Global options must be before the command
|
|
||||||
# TODO -h takes an optional command name
|
# TODO -h takes an optional command name
|
||||||
_arguments -C \
|
_arguments -C -A "-*" \
|
||||||
'(- : *)'{-h,--help}'[get help on a specific command]' \
|
'(- : *)'{-h,--help}'[get help on a specific command]' \
|
||||||
'(-s --silent)'{-v,--verbose}'[verbose mode: errors, warnings and informational messages are printed]' \
|
'(-s --silent)'{-v,--verbose}'[verbose mode: errors, warnings and informational messages are printed]' \
|
||||||
'(-v --verbose)'{-s,--silent}'[silent mode: only errors are printed out]' \
|
'(-v --verbose)'{-s,--silent}'[silent mode: only errors are printed out]' \
|
||||||
|
|
Loading…
Reference in New Issue