Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Generating completion functions from XML



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