diff options
Diffstat (limited to 'completions/man')
-rw-r--r-- | completions/man | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/completions/man b/completions/man index 02bd4f70..e5a47361 100644 --- a/completions/man +++ b/completions/man @@ -40,7 +40,8 @@ _man() $split && return if [[ $cur == -* ]]; then - COMPREPLY=( $(compgen -W '$(_parse_help "$1" -h)' -- "$cur") ) + local opts=$(_parse_help "$1" -h) + COMPREPLY=( $(compgen -W '${opts:-$(_parse_usage "$1")}' -- "$cur") ) [[ $COMPREPLY == *= ]] && compopt -o nospace return fi |