mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-03 22:32:12 +02:00
26 lines
620 B
Text
26 lines
620 B
Text
#compdef unexpand
|
|
|
|
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 help message and exit]"
|
|
"(* -)--version[output version information and exit]"
|
|
)
|
|
fi
|
|
|
|
_arguments "$args[@]" && ret=0
|
|
|
|
return ret
|