Add support for Python object commands to return custom short and long help by implementing
def get_short_help(self) def get_long_help(self) methods on the command object Also, add a test case for this feature llvm-svn: 232224
This commit is contained in:
@@ -119,7 +119,7 @@ class CmdPythonTestCase(TestBase):
|
||||
self.runCmd("command script clear")
|
||||
|
||||
# Test that re-defining an existing command works
|
||||
self.runCmd('command script add my_command --function welcome.welcome_impl')
|
||||
self.runCmd('command script add my_command --class welcome.WelcomeCommand')
|
||||
self.expect('my_command Blah', substrs = ['Hello Blah, welcome to LLDB'])
|
||||
|
||||
self.runCmd('command script add my_command --function welcome.target_name_impl')
|
||||
|
||||
Reference in New Issue
Block a user