summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRob Crittenden <rcritten@redhat.com>2010-09-21 16:18:13 -0400
committerRob Crittenden <rcritten@redhat.com>2010-09-23 12:04:13 -0400
commit47f849ec210ebbf2fa5a90191cdfecedd0f115e4 (patch)
tree8c099daba5d3189b64baec43b9e9ed015996603f
parent2a85755968555de3c7da46f9eade88b216da7377 (diff)
downloadfreeipa-47f849ec210ebbf2fa5a90191cdfecedd0f115e4.tar.gz
freeipa-47f849ec210ebbf2fa5a90191cdfecedd0f115e4.tar.xz
freeipa-47f849ec210ebbf2fa5a90191cdfecedd0f115e4.zip
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
-rw-r--r--ipalib/cli.py7
1 files changed, 4 insertions, 3 deletions
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):