Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Completion using state-machine
- X-seq: zsh-users 12523
- From: Clint Adams <clint@xxxxxxx>
- To: Marco Lombardi <marco.lombardi@xxxxxxxxx>
- Subject: Re: Completion using state-machine
- Date: Thu, 31 Jan 2008 11:26:32 -0500
- Cc: zsh-users@xxxxxxxxxx
- In-reply-to: <840a25630801310228k7dd39656t85754f3cb4fee8cf@xxxxxxxxxxxxxx>
- Mail-followup-to: Marco Lombardi <marco.lombardi@xxxxxxxxx>, zsh-users@xxxxxxxxxx
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <840a25630801310228k7dd39656t85754f3cb4fee8cf@xxxxxxxxxxxxxx>
On Thu, Jan 31, 2008 at 11:28:55AM +0100, Marco Lombardi wrote:
> {-v,--verbose} - increase verbosity of messages, can be used up to three times
> {-s,--simple} - simple flag, can be used only once in the whole line
> {-p,--path}=PATH - specify a directory (e.g., _files -/) for following commands
> {--parameter}=PAR - set some specific parameter, can be used once for
> a specified path
This probably doesn't answer your question, but if you're not strictly
concerned with option order nd context, you can avoid using a state
machine and just do something like
_arguments -s \
\*{-v,--verbose}'[increase verbosity of messages]' \
'(-s --simple)'{-s,--simple}'[simple flag]' \
\*{-p,--path=}':directory for following commands:_directories' \
'*--parameter=:parameter:(1 2 3)'
Messages sorted by:
Reverse Date,
Date,
Thread,
Author