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

Re: _alternative -O undocumented?



On Sat, 14 May 2011 03:25:15 +0200
Mikael Magnusson <mikachu@xxxxxxxxx> wrote:
> It seems _alternative allows passing arbitrary options down to compadd
> by doing foo=( '-V' 'foo' ); _alternative -O foo, but the
> documentation doesn't mention it. _chmod, _which, _zstyle, _aliases
> and _command_names make use of this feature. _values has this feature
> too and documents it,
> 
> If  the first argument is the option `-O name', it will be used in the
> same way as by the _arguments function.  In other words, the  elements
> of the name array will be passed to compadd when executing an action.
> 
> Can I copy this paragraph into the _alternative section? Possibly
> modifying for it not having to be the first option.

Sounds sensible.

-- 
Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx>
Web page now at http://homepage.ntlworld.com/p.w.stephenson/



Messages sorted by: Reverse Date, Date, Thread, Author