summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVille Skyttä <ville.skytta@iki.fi>2011-11-25 19:59:35 +0200
committerVille Skyttä <ville.skytta@iki.fi>2011-11-25 19:59:35 +0200
commitbcf41c74c2528aa76fb01c2178585135ec9e5dbd (patch)
treebd6eb06cbc56a4a1ad8d0b6711a96e45591e4ec9
parent03463a157fd01413e2d78c96b23b320ba093bf27 (diff)
downloadbash-completion-bcf41c74c2528aa76fb01c2178585135ec9e5dbd.tar.gz
declare, typeset: Use _parse_usage.
-rw-r--r--completions/function2
1 files changed, 1 insertions, 1 deletions
diff --git a/completions/function b/completions/function
index e12fffff..e8e4d751 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" ) )