summaryrefslogtreecommitdiffstats
path: root/completions/mailmanctl
diff options
context:
space:
mode:
Diffstat (limited to 'completions/mailmanctl')
-rw-r--r--completions/mailmanctl14
1 files changed, 7 insertions, 7 deletions
diff --git a/completions/mailmanctl b/completions/mailmanctl
index 3bbc2f2..b29487a 100644
--- a/completions/mailmanctl
+++ b/completions/mailmanctl
@@ -1,18 +1,18 @@
# mailmanctl completion -*- shell-script -*-
-_mailmanctl()
+_comp_cmd_mailmanctl()
{
- local cur prev words cword
- _init_completion || return
+ local cur prev words cword comp_args
+ _comp_initialize -- "$@" || return
if [[ $cur == -* ]]; then
- COMPREPLY=($(compgen -W '--no-restart --run-as-user
- --stale-lock-cleanup --quiet --help' -- "$cur"))
+ _comp_compgen -- -W '--no-restart --run-as-user --stale-lock-cleanup
+ --quiet --help'
else
- COMPREPLY=($(compgen -W 'start stop restart reopen' -- "$cur"))
+ _comp_compgen -- -W 'start stop restart reopen'
fi
} &&
- complete -F _mailmanctl mailmanctl
+ complete -F _comp_cmd_mailmanctl mailmanctl
# ex: filetype=sh