diff options
author | Jason Gerard DeRose <jderose@redhat.com> | 2008-08-13 02:10:09 +0000 |
---|---|---|
committer | Jason Gerard DeRose <jderose@redhat.com> | 2008-08-13 02:10:09 +0000 |
commit | 05cefc2af69ceb0df6b03c8e3cae4510024f1d02 (patch) | |
tree | 8867881a66049a7e4c318555583dd85873defea1 /ipalib/cli.py | |
parent | 76df64954d468e00197b8e26f685f51ce096adb0 (diff) | |
download | freeipa-05cefc2af69ceb0df6b03c8e3cae4510024f1d02.tar.gz freeipa-05cefc2af69ceb0df6b03c8e3cae4510024f1d02.tar.xz freeipa-05cefc2af69ceb0df6b03c8e3cae4510024f1d02.zip |
136: CLI.print_commands() now prints cmd.get_doc() as well
Diffstat (limited to 'ipalib/cli.py')
-rw-r--r-- | ipalib/cli.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ipalib/cli.py b/ipalib/cli.py index 898f385b..f7b19801 100644 --- a/ipalib/cli.py +++ b/ipalib/cli.py @@ -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' |