diff options
author | Gabriel F. T. Gomes <gabriel@inconstante.net.br> | 2020-08-03 18:43:13 -0300 |
---|---|---|
committer | Gabriel F. T. Gomes <gabriel@inconstante.net.br> | 2020-08-03 18:43:13 -0300 |
commit | 95623d39d6029ba78ec96ad5ea08e9ac12629b91 (patch) | |
tree | ea0fe36eb5e6f40e0a1f765d44c4b0c0b2bfb089 /completions/pydocstyle | |
parent | 019f3cc463db63abc6460f97deb488deec43840b (diff) | |
download | bash-completion-95623d39d6029ba78ec96ad5ea08e9ac12629b91.tar.gz |
New upstream version 2.11upstream/2.11upstream
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 |