[Bash-completion-commits] [SCM] bash-completion branch, master, updated. 2.0-132-ge7cd7ba

Ville Skyttä ville.skytta at iki.fi
Sun Feb 17 20:24:18 UTC 2013


The following commit has been merged in the master branch:
commit e7cd7ba7df96a5a2bc74693fdede77ca06349af0
Author: Ville Skyttä <ville.skytta at iki.fi>
Date:   Sun Feb 17 22:23:27 2013 +0200

    vpnc: Add bunch of option arg (non)completions.

diff --git a/completions/vpnc b/completions/vpnc
index 115aeb7..143798d 100644
--- a/completions/vpnc
+++ b/completions/vpnc
@@ -6,20 +6,46 @@ _vpnc()
     _init_completion || return
 
     case $prev in
+        --help|--long-help|--version|--id|--username|--domain|--ifname|\
+        --application-version|--local-addr|--local-port|--udp-port|--dpd-idle|\
+        --target-network)
+            return 0
+            ;;
+        --gateway)
+            _known_hosts_real "$cur"
+            return 0
+            ;;
+        --vendor)
+            COMPREPLY=( $( compgen -W 'cisco netscreen' -- "$cur" ) )
+            return 0
+            ;;
+        --natt-mode)
+            COMPREPLY=( $( compgen -W 'natt none force-natt cisco-udp' \
+                -- "$cur" ) )
+            return 0
+            ;;
+        --script|--pid-file|--ca-file)
+            _filedir
+            return 0
+            ;;
+        --dh)
+            COMPREPLY=( $( compgen -W 'dh1 dh2 dh5' -- "$cur" ) )
+            return 0
+            ;;
         --pfs)
             COMPREPLY=( $( compgen -W 'nopfs dh1 dh2 dh5 server' -- "$cur" ) )
             return 0
             ;;
-        --pfs)
-            COMPREPLY=( $( compgen -W 'dh1 dh2 dh5' -- "$cur" ) )
+        --debug)
+            COMPREPLY=( $( compgen -W '0 1 2 3 99' -- "$cur" ) )
             return 0
             ;;
-        --pid-file|--script)
-            _filedir
+        --auth-mode)
+            COMPREPLY=( $( compgen -W 'psk cert hybrid' -- "$cur" ) )
             return 0
             ;;
-        --gateway)
-            _known_hosts_real "$cur"
+        --ca-dir)
+            _filedir -d
             return 0
             ;;
     esac

-- 
bash-completion



More information about the Bash-completion-commits mailing list