The following commit has been merged in the master branch:
commit bb050024d5b066771f854f71c0f42328a24731e5
Author: Ville Skyttä <[email protected]>
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

_______________________________________________
Bash-completion-commits mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/bash-completion-commits

Reply via email to