diff options
| author | Ville Skyttä <ville.skytta@iki.fi> | 2011-11-25 19:59:35 +0200 |
|---|---|---|
| committer | Ville Skyttä <ville.skytta@iki.fi> | 2011-11-25 19:59:35 +0200 |
| commit | bcf41c74c2528aa76fb01c2178585135ec9e5dbd (patch) | |
| tree | bd6eb06cbc56a4a1ad8d0b6711a96e45591e4ec9 /completions | |
| parent | 03463a157fd01413e2d78c96b23b320ba093bf27 (diff) | |
| download | bash-completion-bcf41c74c2528aa76fb01c2178585135ec9e5dbd.tar.gz | |
declare, typeset: Use _parse_usage.
Diffstat (limited to 'completions')
| -rw-r--r-- | completions/function | 2 |
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" ) ) |
