This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Don't show deprecated commands in help


On 04/04/2016 09:48 PM, Simon Marchi wrote:
> Just like completion doesn't show deprecated commands, I think that help
> should not list them, so that we don't incite users to use them.
> 
> gdb/ChangeLog:
> 
> 	* cli/cli-decode.c (help_cmd_list): Do not list commands that
> 	are deprecated.

Seems fine to me.

This made me wonder about whether a "help deprecated" command would
be useful, so a user could clearly/quickly see which commands are
now deprecated.

Also wonder whether we should do something to "apropos".  I guess it 
could/should go the same way as help, not sure.  At least
"apropos deprecated" shows a few hits, but then again deprecated
commands was what I wanted to find.

Thanks,
Pedro Alves


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]