From: Tanaka Akira <akr@m17n.org>
To: zsh-workers@sunsite.auc.dk
Subject: optional argument?
Date: 19 Apr 2000 16:12:58 +0900 [thread overview]
Message-ID: <hvozoqqo96t.fsf@serein.m17n.org> (raw)
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
next reply other threads:[~2000-04-19 7:11 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-04-19 7:12 Tanaka Akira [this message]
2000-04-19 8:00 Sven Wischnowsky
2000-04-21 14:49 ` Tanaka Akira
2000-04-25 9:45 Sven Wischnowsky
2000-04-28 9:44 ` Tanaka Akira
2000-05-05 17:53 ` Tanaka Akira
2000-04-25 11:47 Sven Wischnowsky
2000-05-08 9:44 Sven Wischnowsky
2000-05-08 10:01 ` Peter Stephenson
2000-05-08 14:49 ` Tanaka Akira
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=hvozoqqo96t.fsf@serein.m17n.org \
--to=akr@m17n.org \
--cc=zsh-workers@sunsite.auc.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).