mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
136: CLI.print_commands() now prints cmd.get_doc() as well
This commit is contained in:
@@ -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