[Bug 43258] New: Make it easier to find the definition for an alias command

Bug ID 43258
Summary Make it easier to find the definition for an alias command
Product lldb
Version unspecified
Hardware All
OS All
Status NEW
Severity enhancement
Priority P
Component All Bugs
Assignee lldb-dev@lists.llvm.org
Reporter jingham@apple.com
CC jdevlieghere@apple.com, llvm-bugs@lists.llvm.org

Currently to see the definition of a command alias, you have to run "help" on
the command, and scan down to the end of the page to see the definition.  That
is not very obvious.

One option which came to mind is to have: "command alias name" - which is
currently an error - print the command alias of "name" if it exists.  But that
wouldn't work for "command regex name" which enters you into the "enter the
regex substitution strings" IOHandler.

Another option is to add something to help, like:

(lldb) help --print-definition name

To print the definition of "name" if there is one.  This could print regex
patterns, the alias mapping and maybe even the bodies of Python defined
commands...