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 /src/_gcc-config
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.
Diffstat (limited to 'src/_gcc-config')
-rw-r--r--src/_gcc-config6
1 files changed, 3 insertions, 3 deletions
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'