From 47430bcd7cb2fade4d8753d920a2720eeca52f6a Mon Sep 17 00:00:00 2001 From: Oliver Kiddle Date: Tue, 23 Jan 2018 11:01:55 +0100 Subject: 42317: completion option updates for commands that have had recent updates --- Completion/Unix/Command/_cowsay | 39 +++++++++++++++++++++------------------ 1 file changed, 21 insertions(+), 18 deletions(-) (limited to 'Completion/Unix/Command/_cowsay') diff --git a/Completion/Unix/Command/_cowsay b/Completion/Unix/Command/_cowsay index 19e73811c..8a1b4c4c9 100644 --- a/Completion/Unix/Command/_cowsay +++ b/Completion/Unix/Command/_cowsay @@ -3,26 +3,29 @@ local context state line typeset -A opt_args -_arguments \ - '-e:eye string:' \ - '-f:cowfile:->cowfile' \ - '-T:tongue string:' \ - '-W:wrap column:' \ - '-b[borg mode]' \ - '-d[dead mode]' \ - '-g[greedy mode]' \ - '-h[help]' \ - '-l[list]' \ - '-n[no wordwrap]' \ - '-p[paranoia mode]' \ - '-s[stoned mode]' \ - '-t[tired mode]' \ - '-w[wired mode]' \ - '-y[youthful mode]' \ - ':message:' && return 0 +_arguments -s -S -A "-*" \ + "(H mode)-e+[specify cow's eyes]:eye string [oo]" \ + '(H)-f+[specify cowfile]:cowfile:->cowfile' \ + "(H mode)-T+[specify cow's tongue]:tongue string" \ + '(H)-W+[specify width for message word wrap]:wrap column [40]' \ + '(H)-n[no wordwrap]' \ + '*:message' \ + + 'H' \ + '(- *)-h[display usage information]' \ + '(- *)-l[list all cowfiles]' \ + + '(mode)' \ + '(H -e -T)-b[borg mode]' \ + '(H -e -T)-d[dead mode]' \ + '(H -e -T)-g[greedy mode]' \ + '(H -e -T)-p[paranoia mode]' \ + '(H -e -T)-s[stoned mode]' \ + '(H -e -T)-t[tired mode]' \ + '(H -e -T)-w[wired mode]' \ + '(H -e -T)-y[youthful mode]' && return case "$state" in (cowfile) - compadd ${=${(f)"$($service -l 2>/dev/null)"}:#*\:} || _files + _wanted -C option-f-1 cowfiles expl 'cow file' compadd \ + ${=${(f)"$(_call_program cowfiles $words[1] -l)"}:#*\:} || _files -g "*.cow(-.)" ;; esac -- cgit 1.4.1