zsh-workers
 help / color / mirror / code / Atom feed
a826b56b0085203ee25aee18b92197678aeb2a0a blob 767 bytes (raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
 
#compdef basename gbasename

local args variant
_pick_variant -r variant gnu=GNU $OSTYPE --version

case $variant in
  gnu)
    args=( -s -S -A "-*"
      '(2 -a --multiple)'{-a,--multiple}'[support multiple arguments, handling each]'
      '(2 -a --multiple -s --suffix)'{-s+,--suffix=}'[remove a trailing suffix]:suffix'
      '(-z --zero)'{-z,--zero}'[separate output with NUL rather than newline]'
      '(- *)--version[display version information]'
      '(- *)--help[display help information]'
    )
  ;;
  darwin*|dragonfly*|freebsd*)
    args=( -s -S -A "-*"
      '(2)-a[support multiple arguments, handling each]'
      '(-a 2)-s+[remove a trailing suffix]:suffix'
    )
  ;;
esac

_arguments $args \
  '1:file:_files' \
  '(*)2:suffix' \
  '*:file:_files'
debug log:

solving a826b56b0 ...
found a826b56b0 in https://git.vuxu.org/mirror/zsh/

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).