summaryrefslogtreecommitdiff
path: root/completions/2to3
diff options
context:
space:
mode:
Diffstat (limited to 'completions/2to3')
-rw-r--r--completions/2to320
1 files changed, 10 insertions, 10 deletions
diff --git a/completions/2to3 b/completions/2to3
index 049ba65b..7c5b3303 100644
--- a/completions/2to3
+++ b/completions/2to3
@@ -6,19 +6,19 @@ _2to3()
_init_completion -s || return
case $prev in
- -h|--help|--add-suffix)
+ -h | --help | --add-suffix)
return
;;
- -f|--fix|-x|--nofix)
- COMPREPLY=( $(compgen -W \
- "$($1 --list-fixes 2>/dev/null | command sed -e 1d)" -- "$cur") )
+ -f | --fix | -x | --nofix)
+ COMPREPLY=($(compgen -W \
+ "$($1 --list-fixes 2>/dev/null | command sed -e 1d)" -- "$cur"))
return
;;
- -j|--processes)
- COMPREPLY=( $(compgen -W "{1..$(_ncpus)}" -- "$cur") )
+ -j | --processes)
+ COMPREPLY=($(compgen -W "{1..$(_ncpus)}" -- "$cur"))
return
;;
- -o|--output-dir)
+ -o | --output-dir)
_filedir -d
return
;;
@@ -27,13 +27,13 @@ _2to3()
$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 _2to3 2to3
+ complete -F _2to3 2to3
# ex: filetype=sh