diff options
Diffstat (limited to 'completions/mailmanctl')
-rw-r--r-- | completions/mailmanctl | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/completions/mailmanctl b/completions/mailmanctl index dac1c5bf..3bbc2f24 100644 --- a/completions/mailmanctl +++ b/completions/mailmanctl @@ -5,14 +5,14 @@ _mailmanctl() local cur prev words cword _init_completion || return - if [[ "$cur" == -* ]]; then - COMPREPLY=( $(compgen -W '--no-restart --run-as-user - --stale-lock-cleanup --quiet --help' -- "$cur") ) + if [[ $cur == -* ]]; then + COMPREPLY=($(compgen -W '--no-restart --run-as-user + --stale-lock-cleanup --quiet --help' -- "$cur")) else - COMPREPLY=( $(compgen -W 'start stop restart reopen' -- "$cur") ) + COMPREPLY=($(compgen -W 'start stop restart reopen' -- "$cur")) fi } && -complete -F _mailmanctl mailmanctl + complete -F _mailmanctl mailmanctl # ex: filetype=sh |