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

_alternative -O undocumented?



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.

-- 
Mikael Magnusson



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