[Lldb-commits] [PATCH] D142067: Remove the "help" subcommand - its undocumented, undiscoverable and doesn't work....
Jim Ingham via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Thu Jan 19 12:03:17 PST 2023
This revision was automatically updated to reflect the committed changes.
Closed by commit rG887240faf769: Remove the undocumented `help` subcommand. (authored by jingham).
Changed prior to commit:
https://reviews.llvm.org/D142067?vs=490340&id=490622#toc
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D142067/new/
https://reviews.llvm.org/D142067
Files:
lldb/source/Commands/CommandObjectMultiword.cpp
lldb/test/API/functionalities/multiword-commands/TestMultiWordCommands.py
Index: lldb/test/API/functionalities/multiword-commands/TestMultiWordCommands.py
===================================================================
--- lldb/test/API/functionalities/multiword-commands/TestMultiWordCommands.py
+++ lldb/test/API/functionalities/multiword-commands/TestMultiWordCommands.py
@@ -19,13 +19,3 @@
@no_debug_info_test
def test_empty_subcommand(self):
self.expect("platform \"\"", error=True, substrs=["Need to specify a non-empty subcommand."])
-
- @no_debug_info_test
- def test_help(self):
- # <multiword> help brings up help.
- self.expect("platform help",
- substrs=["Commands to manage and create platforms.",
- "Syntax: platform [",
- "The following subcommands are supported:",
- "connect",
- "Select the current platform"])
Index: lldb/source/Commands/CommandObjectMultiword.cpp
===================================================================
--- lldb/source/Commands/CommandObjectMultiword.cpp
+++ lldb/source/Commands/CommandObjectMultiword.cpp
@@ -174,11 +174,6 @@
return result.Succeeded();
}
- if (sub_command.equals_insensitive("help")) {
- this->CommandObject::GenerateHelpText(result);
- return result.Succeeded();
- }
-
if (m_subcommand_dict.empty()) {
result.AppendErrorWithFormat("'%s' does not have any subcommands.\n",
GetCommandName().str().c_str());
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D142067.490622.patch
Type: text/x-patch
Size: 1533 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20230119/865f3b6a/attachment.bin>
More information about the lldb-commits
mailing list