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

optional argument?



I think `optional arguments' of _arguments doesn't work now.

Z(4):akr@serein% Src/zsh -f
serein% bindkey -e; autoload -U compinit; compinit -D
serein% _tst () { _arguments '-o::optarg:(optarg)' ':arg1:(arg1)' }
serein% compdef _tst tst
serein% tst -o <TAB>
->
serein% tst -o optarg 

If I understand correctly, this should completes `arg1' as well as
`optarg'.
-- 
Tanaka Akira



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