summaryrefslogtreecommitdiffstats
path: root/Completion/Unix/Command/_baz
diff options
context:
space:
mode:
authorClint Adams <clint@users.sourceforge.net>2005-04-17 20:26:28 +0000
committerClint Adams <clint@users.sourceforge.net>2005-04-17 20:26:28 +0000
commit1dbf54ab5b7445eb56053cde5fb7c4b2b1425bfa (patch)
tree69a82342623a6793bd115186eeb6e65cfdd38b77 /Completion/Unix/Command/_baz
parent * 21147: factor out some common code from _tla and _baz, and fix some (diff)
downloadzsh-1dbf54ab5b7445eb56053cde5fb7c4b2b1425bfa.tar
zsh-1dbf54ab5b7445eb56053cde5fb7c4b2b1425bfa.tar.gz
zsh-1dbf54ab5b7445eb56053cde5fb7c4b2b1425bfa.tar.bz2
zsh-1dbf54ab5b7445eb56053cde5fb7c4b2b1425bfa.tar.lz
zsh-1dbf54ab5b7445eb56053cde5fb7c4b2b1425bfa.tar.xz
zsh-1dbf54ab5b7445eb56053cde5fb7c4b2b1425bfa.tar.zst
zsh-1dbf54ab5b7445eb56053cde5fb7c4b2b1425bfa.zip
2005-04-17 Clint Adams <clint@zsh.org>
* 21153: Completion/Debian/Command/_module-assistant: incorporate most of the features of Stephen Rueger's _module-assistant, posted as 21152. * 21151: Completion/Debian/Command/_module-assistant: completion for module-assistant. * 21150: Completion/Unix/Command/_baz, Completion/Unix/Command/_tla: handle parsing of subcommand help output a bit more sanely.
Diffstat (limited to 'Completion/Unix/Command/_baz')
-rw-r--r--Completion/Unix/Command/_baz4
1 files changed, 2 insertions, 2 deletions
diff --git a/Completion/Unix/Command/_baz b/Completion/Unix/Command/_baz
index c5a65437a..a15596488 100644
--- a/Completion/Unix/Command/_baz
+++ b/Completion/Unix/Command/_baz
@@ -490,8 +490,7 @@ _baz_main () {
arguments=()
local input
- input=(${${(f)"$($BAZ $cmd -h)"}# })
- shift 6 input
+ input=(${${(M)${(f)"$($BAZ $cmd -h)"}:# *}# })
local i j=1
local short long arg desc action
@@ -513,6 +512,7 @@ _baz_main () {
(( i++ ))
desc[j]="$desc[j] ${input[i]##* }"
fi
+ [[ "$short[j]" == -[hHV] ]] && continue
desc[j]="${${desc[j]//\[/\\[}//\]/\\]}" # escape brackets
case $arg[j] in