[Bash-completion-commits] [SCM] bash-completion branch, master, updated. 08e746ea109366cd1ba6b52cb02e95c094726876
Ville Skyttä
ville.skytta at iki.fi
Mon Jan 18 17:29:17 UTC 2010
The following commit has been merged in the master branch:
commit 825f3cce05c27a361d060140232d1e72ef26c351
Author: Ville Skyttä <ville.skytta at iki.fi>
Date: Mon Jan 18 19:11:28 2010 +0200
Use _parse_help in _bzip2().
diff --git a/contrib/bzip2 b/contrib/bzip2
index 5a16455..68fb7c5 100644
--- a/contrib/bzip2
+++ b/contrib/bzip2
@@ -3,17 +3,16 @@
have bzip2 &&
_bzip2()
{
- local cur prev xspec
+ local cur prev xspec helpopts
COMPREPLY=()
cur=`_get_cword`
prev=${COMP_WORDS[COMP_CWORD-1]}
+ helpopts=`_parse_help bzip2`
if [[ "$cur" == -* ]]; then
- COMPREPLY=( $( compgen -W '-1 -2 -3 -4 -5 -6 -7 -8 -9 \
- --help --decompress --compress --keep --force \
- --test --stdout --quiet --verbose --license \
- --version --small --fast --best' -- "$cur" ) )
+ COMPREPLY=( $( compgen -W "$helpopts -2 -3 -4 -5 -6 -7 -8 -9" \
+ -- "$cur" ) )
return 0
fi
--
bash-completion
More information about the Bash-completion-commits
mailing list