about summary refs log tree commit diff
path: root/Completion/Redhat
diff options
context:
space:
mode:
authorOliver Kiddle <opk@zsh.org>2016-08-19 18:00:07 +0200
committerOliver Kiddle <opk@zsh.org>2016-08-19 18:00:07 +0200
commit580698bc7136454941dd6bbc2ca70f240fabc6b7 (patch)
tree5f64057da3d5482c4e7f2c8242bfe2bc7de62299 /Completion/Redhat
parent283357dcabb84d90825c3acb37e88dda45fd744d (diff)
downloadzsh-580698bc7136454941dd6bbc2ca70f240fabc6b7.tar.gz
zsh-580698bc7136454941dd6bbc2ca70f240fabc6b7.tar.xz
zsh-580698bc7136454941dd6bbc2ca70f240fabc6b7.zip
39067: update options to correspond to latest versions of software in various functions
Diffstat (limited to 'Completion/Redhat')
-rw-r--r--Completion/Redhat/Command/_scl5
1 files changed, 3 insertions, 2 deletions
diff --git a/Completion/Redhat/Command/_scl b/Completion/Redhat/Command/_scl
index e1a4b69db..b7bba2b13 100644
--- a/Completion/Redhat/Command/_scl
+++ b/Completion/Redhat/Command/_scl
@@ -8,7 +8,8 @@ local -a state line force alts cmd
 
 _arguments -C $force \
   '(- 1)'{-l,--list}'[list installed software collections or packages within a collection]' \
-  '(-l --list)1:action:(enable register deregister)' \
+  '(-l --list)1:action:(enable run load unload list-collections list-packages man register deregister)' \
+  '(- *)--help' \
   '(-)*:collections:->collections' && ret=0
 
 if [[ -n $state ]]; then
@@ -31,7 +32,7 @@ if [[ -n $state ]]; then
     cmd='command:command:_cmdstring'
 
   _alternative 'collections:collection:compadd
-      $(_call_program collections ${words[1]} -l)' \
+      $(_call_program collections "${words[1]} list-collections || ${words[1]} -l")' \
       $cmd && ret=0
 fi