mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
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:
@@ -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