Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
problem with _arguments
- X-seq: zsh-workers 12390
- From: Adam Spiers <adam@xxxxxxxxxx>
- To: zsh workers mailing list <zsh-workers@xxxxxxxxxxxxxx>
- Subject: problem with _arguments
- Date: Wed, 26 Jul 2000 21:24:48 +0100
- Mail-followup-to: zsh workers mailing list <zsh-workers@xxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
- Reply-to: Adam Spiers <adam@xxxxxxxxxx>
I'm trying to write a very simple completion for a function, with the
following requirements:
- the function has one optional option '-l' with no parameter
- the first parameter can't be completed
- subsequent parameters are files
AFAICS from the docs, the completion function should be something
like:
_foo () {
_arguments \
'-l[message for option]' \
':description for first param: ' \
'*:description for files:_files'
}
But with the latest CVS:
$ foo -<TAB>
$ foo -
---- description for first param
What am I doing wrong, or is it a bug?
Messages sorted by:
Reverse Date,
Date,
Thread,
Author