Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
optional argument?
- X-seq: zsh-workers 10817
- From: Tanaka Akira <akr@xxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxx
- Subject: optional argument?
- Date: 19 Apr 2000 16:12:58 +0900
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
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