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());
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());
_______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits