From 810b6233fc2d6b8ce81b5e047a856051c4db3c8b Mon Sep 17 00:00:00 2001 From: Julien Nicoulaud Date: Sun, 21 Aug 2011 11:28:15 +0200 Subject: [PATCH] #42 android: Force global options before the command --- _android | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/_android b/_android index cc49170..a90333b 100644 --- a/_android +++ b/_android @@ -51,9 +51,8 @@ _android() { android_cmd="$words[1]" - # FIXME Global options must be before the command # TODO -h takes an optional command name - _arguments -C \ + _arguments -C -A "-*" \ '(- : *)'{-h,--help}'[get help on a specific command]' \ '(-s --silent)'{-v,--verbose}'[verbose mode: errors, warnings and informational messages are printed]' \ '(-v --verbose)'{-s,--silent}'[silent mode: only errors are printed out]' \