summaryrefslogtreecommitdiffstats
path: root/completions/qrunner
diff options
context:
space:
mode:
Diffstat (limited to 'completions/qrunner')
-rw-r--r--completions/qrunner13
1 files changed, 6 insertions, 7 deletions
diff --git a/completions/qrunner b/completions/qrunner
index 3919ea2..cf54b68 100644
--- a/completions/qrunner
+++ b/completions/qrunner
@@ -1,18 +1,17 @@
# mailman qrunner completion -*- shell-script -*-
-_qrunner()
+_comp_cmd_qrunner()
{
- local cur prev words cword split
- _init_completion -s || return
+ local cur prev words cword was_split comp_args
+ _comp_initialize -s -- "$@" || return
- $split && return
+ [[ $was_split ]] && return
if [[ $cur == -* ]]; then
- COMPREPLY=($(compgen -W '--runner --once --list --verbose --subproc
- --help' -- "$cur"))
+ _comp_compgen -- -W '--runner --once --list --verbose --subproc --help'
fi
} &&
- complete -F _qrunner qrunner
+ complete -F _comp_cmd_qrunner qrunner
# ex: filetype=sh