[Bash-completion-commits] [SCM] bash-completion branch, master, updated. 1.3-302-gd8e22da

Ville Skyttä ville.skytta at iki.fi
Sun May 15 12:59:47 UTC 2011


The following commit has been merged in the master branch:
commit 6aa581fdee8b705a02204bb130af3d1a2291039b
Author: Ville Skyttä <ville.skytta at iki.fi>
Date:   Sun May 15 15:50:28 2011 +0300

    dsniff etc: Use _parse_usage.

diff --git a/completions/dsniff b/completions/dsniff
index 6eb5801..f1c2400 100644
--- a/completions/dsniff
+++ b/completions/dsniff
@@ -18,7 +18,7 @@ _arpspoof()
     esac
 
     if [[ "$cur" == -* ]]; then
-        COMPREPLY=( $( compgen -W '-i -t' -- "$cur" ) )
+        COMPREPLY=( $( compgen -W '$( _parse_usage "$1" )' -- "$cur" ) )
     else
         _known_hosts_real "$cur"
     fi
@@ -44,7 +44,7 @@ _dnsspoof()
     esac
 
     if [[ "$cur" == -* ]]; then
-        COMPREPLY=( $( compgen -W '-i -f' -- "$cur" ) )
+        COMPREPLY=( $( compgen -W '$( _parse_usage "$1" )' -- "$cur" ) )
     fi
 
 } &&
@@ -68,7 +68,7 @@ _dsniff()
     esac
 
     if [[ "$cur" == -* ]]; then
-        COMPREPLY=( $( compgen -W '-c -d -m -n -i -s -f -t -r -w' -- "$cur" ) )
+        COMPREPLY=( $( compgen -W '$( _parse_usage "$1" ) -r -w' -- "$cur" ) )
     fi
 
 } &&
@@ -88,7 +88,7 @@ _snarf()
     esac
 
     if [[ "$cur" == -* ]]; then
-        COMPREPLY=( $( compgen -W '-i -v' -- "$cur" ) )
+        COMPREPLY=( $( compgen -W '$( _parse_usage "$1" )' -- "$cur" ) )
     fi
 
 } &&
@@ -109,7 +109,7 @@ _macof()
 
 
     if [[ "$cur" == -* ]]; then
-        COMPREPLY=( $( compgen -W '-i -s -d -e -x -y -n' -- "$cur" ) )
+        COMPREPLY=( $( compgen -W '$( _parse_usage "$1" )' -- "$cur" ) )
     fi
 
 } &&
@@ -122,7 +122,7 @@ _sshmitm()
     _init_completion || return
 
     if [[ "$cur" == -* ]]; then
-        COMPREPLY=( $( compgen -W '-d -I -p' -- "$cur" ) )
+        COMPREPLY=( $( compgen -W '$( _parse_usage "$1" )' -- "$cur" ) )
     else
         _known_hosts_real "$cur"
     fi
@@ -144,7 +144,7 @@ _sshow()
     esac
 
     if [[ "$cur" == -* ]]; then
-        COMPREPLY=( $( compgen -W '-d -i' -- "$cur" ) )
+        COMPREPLY=( $( compgen -W '$( _parse_usage "$1" )' -- "$cur" ) )
     fi
 
 } &&
@@ -184,7 +184,7 @@ _tcpnice()
     esac
 
     if [[ "$cur" == -* ]]; then
-        COMPREPLY=( $( compgen -W '-A -I -M -i' -- "$cur" ) )
+        COMPREPLY=( $( compgen -W '$( _parse_usage "$1" )' -- "$cur" ) )
     fi
 
 } &&
@@ -204,7 +204,7 @@ _urlsnarf()
     esac
 
     if [[ "$cur" == -* ]]; then
-        COMPREPLY=( $( compgen -W '-n -i -v' -- "$cur" ) )
+        COMPREPLY=( $( compgen -W '$( _parse_usage "$1" )' -- "$cur" ) )
     fi
 
 } &&
@@ -217,7 +217,7 @@ _webmitm()
     _init_completion || return
 
     if [[ "$cur" == -* ]]; then
-        COMPREPLY=( $( compgen -W '-d' -- "$cur" ) )
+        COMPREPLY=( $( compgen -W '$( _parse_usage "$1" )' -- "$cur" ) )
     else
         _known_hosts_real "$cur"
     fi

-- 
bash-completion



More information about the Bash-completion-commits mailing list