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
This commit is contained in:
Rob Crittenden
2010-09-21 16:18:13 -04:00
parent 2a85755968
commit 47f849ec21

View File

@@ -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):