Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

The options variable of _arguments.



Z(2):akr@is27e1u11% Src/zsh -f
is27e1u11% bindkey -e; fpath=($PWD/Completion/*(/)); autoload -U compinit; compinit -D; compdef _tst tst
is27e1u11% _tst () { _arguments -s '-a' '-b' ':descr:{ compadd - $+options[-a] }' }
is27e1u11% tst -ab <TAB>

->

is27e1u11% tst -ab 0 

Hm. It should be:

is27e1u11% tst -ab 1
-- 
Tanaka Akira



Messages sorted by: Reverse Date, Date, Thread, Author