3 local __gopt __len __tmp __pre __suf __ret=1 __descr __spec __prev
5 if [[ "$1" = - ]]; then
11 zparseopts -D -a __gopt 1 2 V J x
13 __tmp=${argv[(ib:4:)-]}
15 if [[ __tmp -lt __len ]]; then
18 elif [[ __tmp -eq $# ]]; then
26 while comptags "-A$__prev" "$1" curtag __spec; do
27 (( $#funcstack > _tags_level )) && _comp_tags="${_comp_tags% * }"
28 _tags_level=$#funcstack
29 _comp_tags="$_comp_tags $__spec "
30 if [[ "$curtag" = *[^\\]:* ]]; then
31 zformat -f __descr "${curtag#*:}" "d:$3"
32 _description "$__gopt[@]" "${curtag%:*}" "$2" "$__descr"
35 "$4" "${(P@)2}" "${(@)argv[5,-1]}" && __ret=0
37 _description "$__gopt[@]" "$curtag" "$2" "$3"
39 "${(@)argv[4,__pre]}" "${(P@)2}" "${(@)argv[__suf,-1]}" && __ret=0