# mailmanctl completion                                    -*- shell-script -*-

_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"))
    else
        COMPREPLY=($(compgen -W 'start stop restart reopen' -- "$cur"))
    fi

} &&
    complete -F _mailmanctl mailmanctl

# ex: filetype=sh
