diff options
Diffstat (limited to 'completions/userdel')
-rw-r--r-- | completions/userdel | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/completions/userdel b/completions/userdel index 7d637d2e..ed98447b 100644 --- a/completions/userdel +++ b/completions/userdel @@ -6,22 +6,22 @@ _userdel() _init_completion || return case $prev in - --help|-!(-*)h) + --help | -!(-*)h) return ;; - --root|-!(-*)R) + --root | -!(-*)R) _filedir -d return ;; esac - if [[ "$cur" == -* ]]; then - COMPREPLY=( $(compgen -W '$(_parse_help "$1")' -- "$cur") ) + if [[ $cur == -* ]]; then + COMPREPLY=($(compgen -W '$(_parse_help "$1")' -- "$cur")) return fi - COMPREPLY=( $(compgen -u -- "$cur") ) + COMPREPLY=($(compgen -u -- "$cur")) } && -complete -F _userdel userdel + complete -F _userdel userdel # ex: filetype=sh |