[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:40 UTC 2011


The following commit has been merged in the master branch:
commit 78b9e0569ef8b580912e7572d0f672cdbd494aa0
Author: Ville Skyttä <ville.skytta at iki.fi>
Date:   Sun May 15 15:16:24 2011 +0300

    postfix etc: Use _parse_usage.

diff --git a/completions/postfix b/completions/postfix
index 553659a..b950b1d 100644
--- a/completions/postfix
+++ b/completions/postfix
@@ -21,7 +21,7 @@ _postfix()
     esac
 
     if [[ $cur == -* ]]; then
-        COMPREPLY=( $( compgen -W '-c -D -v' -- "$cur" ) )
+        COMPREPLY=( $( compgen -W '$( _parse_usage "$1" )' -- "$cur" ) )
         return 0
     fi
 
@@ -48,8 +48,7 @@ _postmap()
     esac
 
     if [[ $cur == -* ]]; then
-        COMPREPLY=( $( compgen -W '-N -f -i -n -o -p -r -v -w -c -d -q' \
-            -- "$cur" ) )
+        COMPREPLY=( $( compgen -W '$( _parse_usage "$1" )' -- "$cur" ) )
         return 0
     fi
 
@@ -88,7 +87,7 @@ _postcat()
     esac
 
     if [[ $cur == -* ]]; then
-        COMPREPLY=( $( compgen -W '-c -q -v' -- "$cur" ) )
+        COMPREPLY=( $( compgen -W '$( _parse_usage "$1" )' -- "$cur" ) )
         return 0
     fi
 
@@ -139,8 +138,7 @@ _postconf()
     esac
 
     if [[ $cur == -* ]]; then
-        COMPREPLY=( $( compgen -W '-A -a -b -c -d -e -h -m -l -n -t -v' \
-            -- "$cur" ) )
+        COMPREPLY=( $( compgen -W '$( _parse_usage "$1" )' -- "$cur" ) )
         return 0
     fi
 
@@ -208,7 +206,7 @@ _postsuper()
     esac
 
     if [[ $cur == -* ]]; then
-        COMPREPLY=( $( compgen -W '-c -d -h -H -p -r -s -v' -- "$cur" ) )
+        COMPREPLY=( $( compgen -W '$( _parse_help "$1" )' -- "$cur" ) )
         return 0
     fi
 

-- 
bash-completion



More information about the Bash-completion-commits mailing list