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

Leveraging the completion system to discover available options in a command



Hi,

Is it possible to use the completion system to get a list of available
options for a command zsh knows how to auto-complete?

Ideally, I'd like given the name of a program to get a list of pairs
(option string, desc) for each available option. I'd be nice to also
get options that are only available in a specific context, but given
how the completion system works, I'd guess that that might be
impossible.


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