The following commit has been merged in the master branch:
commit bcf41c74c2528aa76fb01c2178585135ec9e5dbd
Author: Ville Skyttä <[email protected]>
Date: Fri Nov 25 19:59:35 2011 +0200
declare, typeset: Use _parse_usage.
diff --git a/completions/function b/completions/function
index e12ffff..e8e4d75 100644
--- a/completions/function
+++ b/completions/function
@@ -9,7 +9,7 @@ _function()
if [[ $prev == -f ]]; then
COMPREPLY=( $( compgen -A function -- "$cur" ) )
elif [[ "$cur" == -* ]]; then
- COMPREPLY=( $( compgen -W '-a -f -F -i -r -x -p' -- "$cur" ) )
+ COMPREPLY=( $( compgen -W '$( _parse_usage "$1" )' -- "$cur" ) )
fi
elif [[ $cword -eq 1 ]]; then
COMPREPLY=( $( compgen -A function -- "$cur" ) )
--
bash-completion
_______________________________________________
Bash-completion-commits mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/bash-completion-commits