]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Improve usability and/or readibility of help and apropos output.
authorPhilippe Waroquiers <philippe.waroquiers@skynet.be>
Fri, 31 May 2019 12:00:47 +0000 (14:00 +0200)
committerPhilippe Waroquiers <philippe.waroquiers@skynet.be>
Mon, 3 Jun 2019 19:59:18 +0000 (21:59 +0200)
commit66d8c862859ab241c1db9b40c3981f8a71951bd4
tree57fb3b62dd57ed6d13590367df2f482ead9bdb98
parent9303eb2fb1630678def10613c81215c2bd21d278
Improve usability and/or readibility of help and apropos output.

The "help" command can output long list of command names or classes.
Use the title style to style the command names or classes to make
the output more readable.

Similarly, change "apropos" command to also style the command names.

It is sometimes unclear why "apropos REGEXP" lists some commands,
and then the user has to manually do 'help command' for all commands
listed by "apropos" to see more details about the matching commands.

=> Add an optional flag -v so that "apropos -v REGEXP":
  * outputs the full documentation of matching commands.
  * highlights the documentation parts matching REGEXP.
gdb/ChangeLog
gdb/cli/cli-cmds.c
gdb/cli/cli-decode.c
gdb/cli/cli-decode.h