From 47f849ec210ebbf2fa5a90191cdfecedd0f115e4 Mon Sep 17 00:00:00 2001 From: Rob Crittenden Date: Tue, 21 Sep 2010 16:18:13 -0400 Subject: Try to make topic help less confusing. Rename Related to Topic commands. Also don't print the commands at the bottom if the plugin implements only one command, like the passwd plugin. ticket 105 --- ipalib/cli.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'ipalib/cli.py') diff --git a/ipalib/cli.py b/ipalib/cli.py index d19e397a0..44f9c813c 100644 --- a/ipalib/cli.py +++ b/ipalib/cli.py @@ -674,9 +674,10 @@ class help(frontend.Local): print doc print '' - print 'Related commands:' - for c in commands: - print ' %s %s' % (to_cli(c.name).ljust(mcl), c.summary) + if len(commands) > 1: + print 'Topic commands:' + for c in commands: + print ' %s %s' % (to_cli(c.name).ljust(mcl), c.summary) class console(frontend.Command): -- cgit