summaryrefslogtreecommitdiff
path: root/completions/pycodestyle
diff options
context:
space:
mode:
Diffstat (limited to 'completions/pycodestyle')
-rw-r--r--completions/pycodestyle10
1 files changed, 5 insertions, 5 deletions
diff --git a/completions/pycodestyle b/completions/pycodestyle
index 2eac748c..dec6f375 100644
--- a/completions/pycodestyle
+++ b/completions/pycodestyle
@@ -6,11 +6,11 @@ _pycodestyle()
_init_completion -s || return
case $prev in
- -h|--help|--version)
+ -h | --help | --version)
return
;;
--format)
- COMPREPLY=( $(compgen -W 'default pylint' -- "$cur") )
+ COMPREPLY=($(compgen -W 'default pylint' -- "$cur"))
return
;;
--config)
@@ -22,13 +22,13 @@ _pycodestyle()
$split && return
if [[ $cur == -* ]]; then
- COMPREPLY=( $(compgen -W '$(_parse_help "$1")' -- "$cur") )
- [[ $COMPREPLY == *= ]] && compopt -o nospace
+ COMPREPLY=($(compgen -W '$(_parse_help "$1")' -- "$cur"))
+ [[ ${COMPREPLY-} == *= ]] && compopt -o nospace
return
fi
_filedir py
} &&
-complete -F _pycodestyle pycodestyle
+ complete -F _pycodestyle pycodestyle
# ex: filetype=sh