[Bash-completion-commits] [SCM] bash-completion branch, master, updated. 1.3-290-g68f7fa1

Ville Skyttä ville.skytta at iki.fi
Wed May 11 21:29:22 UTC 2011


The following commit has been merged in the master branch:
commit bb050024d5b066771f854f71c0f42328a24731e5
Author: Ville Skyttä <ville.skytta at iki.fi>
Date:   Wed May 11 23:48:21 2011 +0300

    l2ping: Use _parse_usage, add some option argument non-completions.

diff --git a/completions/bluez b/completions/bluez
index f7abfcb..74acdb4 100644
--- a/completions/bluez
+++ b/completions/bluez
@@ -176,10 +176,13 @@ _l2ping()
             _bluetooth_devices
             return 0
             ;;
+        -s|-c|-t|-d)
+            return 0
+            ;;
     esac
 
     if [[ "$cur" == -* ]]; then
-        COMPREPLY=( $( compgen -W '-i -s -c -t -f -r' -- "$cur" ) )
+        COMPREPLY=( $( compgen -W '$( _parse_usage "$1" )' -- "$cur" ) )
     else
         _bluetooth_adresses
     fi

-- 
bash-completion



More information about the Bash-completion-commits mailing list