This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] Don't show deprecated commands in help
- From: Simon Marchi <simon dot marchi at ericsson dot com>
- To: Pedro Alves <palves at redhat dot com>, <gdb-patches at sourceware dot org>
- Date: Thu, 28 Apr 2016 14:19:00 -0400
- Subject: Re: [PATCH] Don't show deprecated commands in help
- Authentication-results: sourceware.org; auth=none
- References: <1459802898-18656-1-git-send-email-simon dot marchi at ericsson dot com> <571616C1 dot 1090309 at redhat dot com>
On 16-04-19 07:30 AM, Pedro Alves wrote:
> 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.
Thanks, I pushed it.
> 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.
Yes, that would be nice.
> 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.
It would make sense if apropos also didn't show deprecated commands.
Those sound like relatively easy tasks, which would be perfect for new
contributors. I read this some time ago, I was wondering if we should
have something like that in gdb:
https://medium.com/@kentcdodds/first-timers-only-78281ea47455#.txao561fn
Perhaps we could have a keyword for them in BZ... WDYT?