* fix: you can't get_command() like that
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user