From 05cefc2af69ceb0df6b03c8e3cae4510024f1d02 Mon Sep 17 00:00:00 2001 From: Jason Gerard DeRose Date: Wed, 13 Aug 2008 02:10:09 +0000 Subject: 136: CLI.print_commands() now prints cmd.get_doc() as well --- ipalib/cli.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'ipalib/cli.py') 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' -- cgit