diff options
Diffstat (limited to 'completions/pydocstyle')
-rw-r--r-- | completions/pydocstyle | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/completions/pydocstyle b/completions/pydocstyle index eb858901..acbf1ece 100644 --- a/completions/pydocstyle +++ b/completions/pydocstyle @@ -6,8 +6,8 @@ _pydocstyle() _init_completion -s || return case $prev in - --help|--version|--match|--ignore-decorators|--select|--ignore|\ - --add-select|--add-ignore|-!(-*)h) + --help | --version | --match | --ignore-decorators | --select | --ignore | \ + --add-select | --add-ignore | -!(-*)h) return ;; --config) @@ -15,21 +15,21 @@ _pydocstyle() return ;; --convention) - COMPREPLY=( $(compgen -W "pep257 numpy" -- "$cur") ) + COMPREPLY=($(compgen -W "pep257 numpy" -- "$cur")) return ;; esac $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 py } && -complete -F _pydocstyle pydocstyle + complete -F _pydocstyle pydocstyle # ex: filetype=sh |