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:
Enrico Granata
2015-03-13 22:22:28 +00:00
parent e7ce9ec398
commit 6f79bb2d57
9 changed files with 229 additions and 11 deletions

View File

@@ -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')