diff options
author | Enrico Granata <egranata@apple.com> | 2013-06-12 01:50:57 +0000 |
---|---|---|
committer | Enrico Granata <egranata@apple.com> | 2013-06-12 01:50:57 +0000 |
commit | 035ef3d0a0136f2b9028b4695a681e58ba899651 (patch) | |
tree | 2c74314a9f841036d8ce9d34a692ea2c84776e7e /include | |
parent | ac94caa68a4a5fa4bd939d7656a6a12d8fc06a33 (diff) | |
download | lldb-035ef3d0a0136f2b9028b4695a681e58ba899651.tar.gz |
<rdar://problem/11914077>
If you type help command <word> <word> <word> <missingSubCommand> (e.g. help script import or help type summary fake), you will get help on the deepest matched command word (i.e. script or type summary in the examples)
Also, reworked the logic for commands to produce their help to make it more object-oriented
git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@183822 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/lldb/Interpreter/CommandObject.h | 7 | ||||
-rw-r--r-- | include/lldb/Interpreter/CommandObjectMultiword.h | 2 |
2 files changed, 5 insertions, 4 deletions
diff --git a/include/lldb/Interpreter/CommandObject.h b/include/lldb/Interpreter/CommandObject.h index 917061e3e..6ddebdb56 100644 --- a/include/lldb/Interpreter/CommandObject.h +++ b/include/lldb/Interpreter/CommandObject.h @@ -160,10 +160,11 @@ public: { } + void + GenerateHelpText (CommandReturnObject &result); + virtual void - GenerateHelpText (CommandReturnObject &result) - { - } + GenerateHelpText (Stream &result); // this is needed in order to allow the SBCommand class to // transparently try and load subcommands - it will fail on diff --git a/include/lldb/Interpreter/CommandObjectMultiword.h b/include/lldb/Interpreter/CommandObjectMultiword.h index d417f23ee..491d43c4b 100644 --- a/include/lldb/Interpreter/CommandObjectMultiword.h +++ b/include/lldb/Interpreter/CommandObjectMultiword.h @@ -47,7 +47,7 @@ public: const lldb::CommandObjectSP& command_obj); virtual void - GenerateHelpText (CommandReturnObject &result); + GenerateHelpText (Stream &output_stream); virtual lldb::CommandObjectSP GetSubcommandSP (const char *sub_cmd, StringList *matches = NULL); |