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:
1 parent
2a85755968
commit
47f849ec21
1 file changed
+4
-3
+4
-3
@@ -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):
|
||||
|
||||
Reference in new issue
Block a user