* fix: you can't get_command() like that

This commit is contained in:
Eray Özkural
2005-12-19 16:13:18 +00:00
parent ce35f1fc45
commit cf773704e1
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -54,7 +54,7 @@ Please file a bug report. (http://bugs.uludag.org.tr)"""))
if ctx.get_option('debug'): if ctx.get_option('debug'):
ui.error("%s: %s" % (exception, v)) ui.error("%s: %s" % (exception, v))
else: else:
ui.error(v) ui.error(v)
ui.info(_("Please use 'pisi help' for general help.")) ui.info(_("Please use 'pisi help' for general help."))
+3 -3
View File
@@ -43,9 +43,9 @@ class Command(object):
list = [x.name[0] for x in Command.cmd] list = [x.name[0] for x in Command.cmd]
list.sort() list.sort()
for name in list: for name in list:
command = Command.get_command(name) commandcls = Command.cmd_dict[name]
summary = command.__doc__.split('\n')[0] summary = commandcls.__doc__.split('\n')[0]
s += '%25s - %s\n' % (command.format_name(), summary) s += '%20s - %s\n' % (commandcls.name[0], summary)
return s return s
@staticmethod @staticmethod