Re: Leveraging the completion system to discover available options in a command

2013-03-02 Thread Davide Brini
On Fri, 1 Mar 2013 15:27:31 +0200, Idan Kamara wrote: > Hi, > > Is it possible to use the completion system to get a list of available > options for a command bash 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 ea

Leveraging the completion system to discover available options in a command

2013-03-01 Thread Idan Kamara
Hi, Is it possible to use the completion system to get a list of available options for a command bash 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 ava