diff options
author | Oliver Kiddle <opk@users.sourceforge.net> | 2001-04-01 16:19:15 +0000 |
---|---|---|
committer | Oliver Kiddle <opk@users.sourceforge.net> | 2001-04-01 16:19:15 +0000 |
commit | b9c58a73ac2eace89340b268db852c8a158bd707 (patch) | |
tree | ca4e713df765174bc90fcc2e8c2a3be9288905de /Completion/User/_bzip2 | |
parent | e6be1f76cf77a63dd79dbe3d6eea62815caa87ab (diff) | |
download | zsh-b9c58a73ac2eace89340b268db852c8a158bd707.tar.gz zsh-b9c58a73ac2eace89340b268db852c8a158bd707.tar.xz zsh-b9c58a73ac2eace89340b268db852c8a158bd707.zip |
various doc fixes and minor completion function changes, most of which
are to use the -A "-*" and -S options to _arguments (13863)
Diffstat (limited to 'Completion/User/_bzip2')
-rw-r--r-- | Completion/User/_bzip2 | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Completion/User/_bzip2 b/Completion/User/_bzip2 index cbb231c4d..951f85996 100644 --- a/Completion/User/_bzip2 +++ b/Completion/User/_bzip2 @@ -6,7 +6,7 @@ typeset -A opt_args case "$service" in bzip2recover) [[ $CURRENT = 2 ]] && state=files;; bzip2) decompress=no;& - bunzip2) _arguments -C -s \ + bunzip2) _arguments -C -s -S \ '(--help)-h[display help message]' \ '(-h)--help[display help message]' \ '(--decompress --compress -z --test -t)-d[decompress]' \ @@ -47,7 +47,7 @@ if [[ "$state" = files ]]; then (( $+opt_args[-z] || $+opt_args[--compress] )) && decompress=no (( $+opt_args[-d] || $+opt_args[--decompress] || $+opt_args[-t] || $+opt_args[--test] )) && unset decompress - if [[ -z "$decompress" ]] ; then + if [[ -z "$decompress" ]]; then _description files expl 'compressed file' _files "$expl[@]" -g '*.bz2' && return 0 else |