From bcf41c74c2528aa76fb01c2178585135ec9e5dbd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ville=20Skytt=C3=A4?= Date: Fri, 25 Nov 2011 19:59:35 +0200 Subject: declare, typeset: Use _parse_usage. --- completions/function | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" ) ) -- cgit v1.2.1