zsh-workers
 help / color / mirror / code / Atom feed
d9793ea7093c00c6a01970a6beeb51eb534ad34a blob 594 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
 
#compdef unexpand gunexpand

local all tabs ret=1
local -a args

all="convert all whitespace, instead of just initial whitespace"
tabs="use comma separated list of tab positions"
args=( 
  "(--all)-a[$all]"
  "(--tabs)-t+[$tabs]:tablist"
  '*:file:_files'
)

if _pick_variant gnu="Free Soft" unix --version; then
  args+=(
    "(-a)--all[$all]"
    '--first-only[convert only leading sequences of whitespace]'
    "(-t)--tabs=[$tabs]:tablist"
    '(* -)--help[display usage information]'
    '(* -)--version[output version information]'
  )
fi

_arguments -s -S "$args[@]" && ret=0

return ret
debug log:

solving d9793ea70 ...
found d9793ea70 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).