136: CLI.print_commands() now prints cmd.get_doc() as well

This commit is contained in:
Jason Gerard DeRose
2008-08-13 02:10:09 +00:00
parent 76df64954d
commit 05cefc2af6

View File

@@ -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'