From: W. Trevor King Date: Mon, 3 Sep 2012 19:15:03 +0000 (-0400) Subject: command:help: match against command names (not module names). X-Git-Tag: 1.1.0~88 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=9bf572f523430225e268095b9c653dee9c37c803;p=be.git command:help: match against command names (not module names). --- diff --git a/libbe/command/help.py b/libbe/command/help.py index 3b6bb2e..869a35a 100644 --- a/libbe/command/help.py +++ b/libbe/command/help.py @@ -62,7 +62,7 @@ class Help (libbe.command.Command): if params['topic'] == None: if hasattr(self.ui, 'help'): print >> self.stdout, self.ui.help().rstrip('\n') - elif params['topic'] in libbe.command.commands(): + elif params['topic'] in libbe.command.commands(command_names=True): module = libbe.command.get_command(params['topic']) Class = libbe.command.get_command_class(module,params['topic']) c = Class(ui=self.ui)