aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Harder <radhermit@gentoo.org>2014-12-19 20:36:59 -0800
committerTim Harder <radhermit@gentoo.org>2014-12-19 20:36:59 -0800
commitef58d52de7c3c828e5fe9db4667dc1fd18f3b418 (patch)
tree827b7331c820b9ca6f2eecbf2f47a679f4efb3a5
parent_portage: add etc-update support (diff)
downloadzsh-completion-ef58d52de7c3c828e5fe9db4667dc1fd18f3b418.tar.gz
zsh-completion-ef58d52de7c3c828e5fe9db4667dc1fd18f3b418.tar.bz2
zsh-completion-ef58d52de7c3c828e5fe9db4667dc1fd18f3b418.zip
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.
-rw-r--r--src/_binutils-config4
-rw-r--r--src/_gcc-config6
-rw-r--r--src/_perl-cleaner6
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]"