diff options
Diffstat (limited to 'completions/oggdec')
-rw-r--r-- | completions/oggdec | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/completions/oggdec b/completions/oggdec index 9bdf5019..97bde205 100644 --- a/completions/oggdec +++ b/completions/oggdec @@ -6,18 +6,18 @@ _oggdec() _init_completion -s || return case $prev in - --help|--version|-!(-*)[hV]*) + --help | --version | -!(-*)[hV]*) return ;; - --bits|-!(-*)b) - COMPREPLY=( $(compgen -W "8 16" -- "$cur") ) + --bits | -!(-*)b) + COMPREPLY=($(compgen -W "8 16" -- "$cur")) return ;; - --endianness|--sign|-!(-*)[es]) - COMPREPLY=( $(compgen -W "0 1" -- "$cur") ) + --endianness | --sign | -!(-*)[es]) + COMPREPLY=($(compgen -W "0 1" -- "$cur")) return ;; - --output|-!(-*)o) + --output | -!(-*)o) _filedir wav return ;; @@ -25,14 +25,14 @@ _oggdec() $split && return - if [[ "$cur" == -* ]]; then - COMPREPLY=( $(compgen -W '$(_parse_help "$1")' -- "$cur") ) - [[ $COMPREPLY == *= ]] && compopt -o nospace + if [[ $cur == -* ]]; then + COMPREPLY=($(compgen -W '$(_parse_help "$1")' -- "$cur")) + [[ ${COMPREPLY-} == *= ]] && compopt -o nospace return fi _filedir ogg } && -complete -F _oggdec oggdec + complete -F _oggdec oggdec # ex: filetype=sh |