Adding two new options to the 'help' command:
--show-aliases (-a) shows aliases for commands, as well as built-in commands --hide-user-defined (-u) hides user defined commands by default 'help' without arguments does not show aliases anymore. to see them, add --show-aliases to have only built-in commands appear, use 'help --hide-user-defined' ; there is currently no way to hide built-in commands from the help output 'help command' is not changed by this commit, and help is shown even if command is an alias and -a is not specified llvm-svn: 139377
This commit is contained in:
@@ -38,6 +38,18 @@ class CmdPythonTestCase(TestBase):
|
||||
substrs = ['Just a docstring for welcome_impl',
|
||||
'A command that says hello to LLDB users'])
|
||||
|
||||
self.expect("help",
|
||||
substrs = ['Run Python function welcome.welcome_impl',
|
||||
'welcome'])
|
||||
|
||||
self.expect("help -a",
|
||||
substrs = ['Run Python function welcome.welcome_impl',
|
||||
'welcome'])
|
||||
|
||||
self.expect("help -u", matching=False,
|
||||
substrs = ['Run Python function welcome.welcome_impl',
|
||||
'welcome'])
|
||||
|
||||
self.runCmd("command script delete welcome");
|
||||
|
||||
self.expect('welcome Enrico', matching=False, error=True,
|
||||
|
||||
Reference in New Issue
Block a user