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

Re: Automatic long options completion for --?



Andrej Borsenkow wrote:

> Struggling with Cygwin I found myself wishing to get at least trivial
> completion for arbitrary command with long options.
> 
> Is it possible to complete after -- for *any* command (of course, assuming
> that no specific completion is defined)?

compdef -P _use_lo '*'

> Of course, if this could extract help text as well ... :-)

We had this before. Sometimes just telling us about great ideas is
enough. Sometimes we need more help and sometimes we don't feel like
implementing this ourselves ;-)

So, if you can come up with something reasonable, that is guaranteed
to never produce a wrong description but at least sometimes gives the
right one...

Bye
 Sven


--
Sven Wischnowsky                         wischnow@xxxxxxxxxxxxxxxxxxxxxxx



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