[Bash-completion-commits] [SCM] bash-completion branch, master, updated. 1.90-133-g3388314

Igor Murzov e-mail at date.by
Thu Jan 12 20:33:58 UTC 2012


The following commit has been merged in the master branch:
commit 32e8f3301801c9ff86f9620ca135f83f71590e29
Author: Igor Murzov <e-mail at date.by>
Date:   Thu Jan 12 19:45:24 2012 +0400

    sbopkg: Use _parse_help.
    
    Reviewed-by: Sergey V <sftp.mtuci at gmail.com>

diff --git a/completions/sbopkg b/completions/sbopkg
index 0c812fa..9ccc997 100644
--- a/completions/sbopkg
+++ b/completions/sbopkg
@@ -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

-- 
bash-completion



More information about the Bash-completion-commits mailing list