Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Generating completion functions from XML
- X-seq: zsh-workers 15456
- From: Sven Wischnowsky <wischnow@xxxxxxxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: Re: Generating completion functions from XML
- Date: Mon, 23 Jul 2001 12:56:41 +0200 (MET DST)
- In-reply-to: <Pine.SV4.4.33.0107230818300.20827-100000@xxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
Andrej Borsenkow wrote:
> ...
>
> I really wish we had different notation for equivalent flags. Exclusion
> lists at this point are already overloaded and loko ugly (most important,
> tgey force us to repeat the whole line). Consider
>
> -b, --binary
> -t, --text
>
> where two lines are obviously incompatible. You can't write it using brace
> notation; you need *four* lines! like
>
> (-b --binary -t)--text...
> (-b --binary --text)-t...
>
> O.K. it could be shrtened to two lines but then quoting becomes unnatural
> and too error prone.
In this case '(-b --binary -t --text)'-{-{text,binary},b,t}'...' would work.
Remember, an option without the `*' flag is mutually exclusive to itself
(internally it really just gets added to its exclusion list, so one
could just add it by hand).
Bye
Sven
--
Sven Wischnowsky wischnow@xxxxxxxxxxxxxxxxxxxxxxx
Messages sorted by:
Reverse Date,
Date,
Thread,
Author