From ef58d52de7c3c828e5fe9db4667dc1fd18f3b418 Mon Sep 17 00:00:00 2001 From: Tim Harder Date: Fri, 19 Dec 2014 20:36:59 -0800 Subject: fix singular argument forcing This allows multiples of the same option to be completed in certain cases (increasing/decreasing verbosity for perl-cleaner) and fixes several cases where arguments shouldn't stop additional arguments from being completed. --- src/_binutils-config | 4 ++-- src/_gcc-config | 6 +++--- src/_perl-cleaner | 6 +++--- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/_binutils-config b/src/_binutils-config index 30064b3..1dd7bb9 100644 --- a/src/_binutils-config +++ b/src/_binutils-config @@ -5,8 +5,8 @@ local arguments arguments=( '(- :)'{--get-current-profile,-c}'[print current profile]' '(- :)'{--list-profiles,-l}'[print a list of available profiles]' - '(- :)'{--uninstall,-u}'[remove all signs of specified target]' - '(- :)'{--debug,-d}'[execute with debug output]' + {'(--uninstall)-u','(-u)--uninstall'}'[remove all signs of specified target]' + {'(--debug)-d','(-d)--debug'}'[execute with debug output]' '(- :)'{--help,-h}'[show help]' '(- :):profiles:_binutils_profiles' ) diff --git a/src/_gcc-config b/src/_gcc-config index e4dfb51..e292e6c 100644 --- a/src/_gcc-config +++ b/src/_gcc-config @@ -4,12 +4,12 @@ local arguments arguments=( - '(- :)'{--nocolor,-C}'[disable colored output]' + {'(--nocolor)-C','(-C)--nocolor'}'[disable colored output]' '(- :)'{--use-old,-O}'[use the old profile if one was selected]' - '(- :)'{--force,-f}'[make sure all config files are regenerated]' + {'(--force)-f','(-f)--force'}'[make sure all config files are regenerated]' '(- :)'{--get-current-profile,-c}'[print current used gcc profile]' '(- :)'{--list-profiles,-l}'[print a list of available profiles]' - '(- :)'{--split-profile,-S}'[split profiles into their components]' + {'(--split-profile)-S','(-S)--split-profile'}'[split profiles into their components]' '(- :)'{--print-environ,-E}'[print environment of the given/current profile]:profiles:_gcc_profiles' '(- :)'{--get-bin-path,-B}'[print binary path of given/current profile]:profiles:_gcc_profiles' '(- :)'{--get-lib-path,-L}'[print library path of given/current profile]:profiles:_gcc_profiles' diff --git a/src/_perl-cleaner b/src/_perl-cleaner index 5f25aaf..c9e7434 100644 --- a/src/_perl-cleaner +++ b/src/_perl-cleaner @@ -6,9 +6,9 @@ local arguments arguments=( '(- :)'{--help,-h}'[show help]' '(- :)'{--version,-V}'[show version]' - '(- :)'{--pretend,-p}"[pretend (don't do anything)]" - '(- :)'{--verbose,-v}'[increase verbosity (may be specified multiple times)]' - '(- :)'{--quiet,-q}'[decrease verbosity]' + {'(--pretend)-p','(-p)--pretend'}"[pretend (don't do anything)]" + '*'{-v,--verbose}'[increase verbosity (may be specified multiple times)]' + '*'{-q,--quiet}'[decrease verbosity]' "--modules[rebuild perl modules for old installs of perl]" "--allmodules[rebuild all perl modules]" "--libperl[rebuild anything linked against libperl]" -- cgit v1.2.3-65-gdbad