sbopkg: Use _parse_help.
Reviewed-by: Sergey V <sftp.mtuci@gmail.com>
This commit is contained in:
parent
f67818e023
commit
32e8f33018
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user