1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
# mailman cleanarch completion -*- shell-script -*- _cleanarch() { local cur prev words cword _init_completion || return if [[ $cur == -* ]]; then COMPREPLY=($(compgen -W '--status --dry-run --quiet --help' \ -- "$cur")) fi } && complete -F _cleanarch cleanarch # ex: filetype=sh