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