From 6c09f2a45c5541e9c207d14fc7aa21a4a0066bde Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 4 May 2024 03:03:19 +0200 Subject: Merging upstream version 1:2.12.0. Signed-off-by: Daniel Baumann --- completions/qrunner | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'completions/qrunner') 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 -- cgit v1.2.3