sbopkg: Use _parse_help.

Reviewed-by: Sergey V <sftp.mtuci@gmail.com>
This commit is contained in:
Igor Murzov 2012-01-12 19:45:24 +04:00
parent f67818e023
commit 32e8f33018

View File

@ -6,9 +6,8 @@ _sbopkg()
_init_completion || return
if [[ "$cur" == -* ]]; then
COMPREPLY=( $( compgen -W '-b -c -d -e -f -g -h -i -k -l -o
-P -p -q -R -r -s -u -V -v' -- "$cur" ) )
return
COMPREPLY=( $( compgen -W '$( _parse_help "$1" -h )' -- "$cur" ) )
[[ $COMPREPLY ]] && return
fi
case "$prev" in