Re: [PATCH] print help for undocumented options

2015-10-15 Thread Joseph Myers
On Wed, 14 Oct 2015, Martin Sebor wrote: > On 10/14/2015 01:40 PM, Joseph Myers wrote: > > On Wed, 14 Oct 2015, Martin Sebor wrote: > > > > > IMO, printing the aliased option's help text makes using the output > > > easier for users who find the undocumented option first, in that > > > they don't

Re: [PATCH] print help for undocumented options

2015-10-14 Thread Martin Sebor
On 10/14/2015 01:40 PM, Joseph Myers wrote: On Wed, 14 Oct 2015, Martin Sebor wrote: IMO, printing the aliased option's help text makes using the output easier for users who find the undocumented option first, in that they don't then have to go look for the one that does have documentation, so

Re: [PATCH] print help for undocumented options

2015-10-14 Thread Joseph Myers
On Wed, 14 Oct 2015, Martin Sebor wrote: > IMO, printing the aliased option's help text makes using the output > easier for users who find the undocumented option first, in that > they don't then have to go look for the one that does have > documentation, so I left that part in place. If you or s

Re: [PATCH] print help for undocumented options

2015-10-14 Thread Martin Sebor
On 10/14/2015 11:24 AM, Joseph Myers wrote: On Wed, 14 Oct 2015, Martin Sebor wrote: + /* For undocumented options that are aliases for other +options that are documented, print the other option's +help and name. */ + help = cl_options [o

Re: [PATCH] print help for undocumented options

2015-10-14 Thread Joseph Myers
On Wed, 14 Oct 2015, Martin Sebor wrote: > + /* For undocumented options that are aliases for other > +options that are documented, print the other option's > +help and name. */ > + help = cl_options [option->alias_target].help; > + > +

[PATCH] print help for undocumented options

2015-10-14 Thread Martin Sebor
Gcc's online help (the output of gcc --help -v) includes a large number of undocumented options (197 in 5.1.0). For example, the section listing language-related options starts with the following and another 44 or so undocumented options: The following options are language-related: --all-w