diff options
Diffstat (limited to 'completions/wsimport')
-rw-r--r-- | completions/wsimport | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/completions/wsimport b/completions/wsimport index 406a47d7..d5bec9fe 100644 --- a/completions/wsimport +++ b/completions/wsimport @@ -6,7 +6,7 @@ _wsimport() _init_completion -n : || return case $prev in - -help|-version|-B|-p|-wsdllocation) + -help | -version | -B | -p | -wsdllocation) return ;; -b) @@ -17,12 +17,12 @@ _wsimport() _filedir '@(xml|soc|catalog)' return ;; - -d|–s) + -d | –s) _filedir -d return ;; -target) - COMPREPLY=( $(compgen -W '2.0 2.1 2.2' -- "$cur") ) + COMPREPLY=($(compgen -W '2.0 2.1 2.2' -- "$cur")) return ;; -clientjar) @@ -35,14 +35,14 @@ _wsimport() _known_hosts_real -- "${cur#-httpproxy:}" return elif [[ $cur == -* ]]; then - COMPREPLY=( $(compgen -W '$(_parse_help "$1" -help)' -- "$cur") ) - [[ $COMPREPLY == *: ]] && compopt -o nospace + COMPREPLY=($(compgen -W '$(_parse_help "$1" -help)' -- "$cur")) + [[ ${COMPREPLY-} == *: ]] && compopt -o nospace __ltrim_colon_completions "$cur" return fi _filedir wsdl } && -complete -F _wsimport wsimport + complete -F _wsimport wsimport # ex: filetype=sh |