136: CLI.print_commands() now prints cmd.get_doc() as well
This commit is contained in:
1 parent
76df64954d
commit
05cefc2af6
1 file changed
+4
-1
+4
-1
@@ -61,7 +61,10 @@ class CLI(object):
|
||||
|
||||
def print_commands(self):
|
||||
for cmd in self.api.cmd:
|
||||
print to_cli(cmd.name)
|
||||
print ' %s %s' % (
|
||||
to_cli(cmd.name).ljust(self.mcl),
|
||||
cmd.get_doc(_),
|
||||
)
|
||||
|
||||
def __contains__(self, key):
|
||||
assert self.__d is not None, 'you must call finalize() first'
|
||||
|
||||
Reference in new issue
Block a user