command:help: match against command names (not module names).
authorW. Trevor King <wking@tremily.us>
Mon, 3 Sep 2012 19:15:03 +0000 (15:15 -0400)
committerW. Trevor King <wking@tremily.us>
Mon, 3 Sep 2012 19:15:03 +0000 (15:15 -0400)
libbe/command/help.py

index 3b6bb2e814117f230e4174e85c1e16d7ee64f0eb..869a35a50115494416ddb813c832ac781e5ba6c9 100644 (file)
@@ -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)