mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Simplify ipa help topics output
This brings the output closer to `ipa help commands` and removes extraneous information. Part of the effort for https://fedorahosted.org/freeipa/ticket/3060
This commit is contained in:
committed by
Rob Crittenden
parent
5ee2216f49
commit
6ac0e9b90f
@@ -791,16 +791,9 @@ class help(frontend.Local):
|
||||
|
||||
def print_topics(self, outfile):
|
||||
writer = self._writer(outfile)
|
||||
topics = sorted(self._topics.keys())
|
||||
|
||||
writer(_('Usage: ipa [global-options] COMMAND [command-options]...'))
|
||||
writer()
|
||||
writer(_('Help topics:'))
|
||||
for t in topics:
|
||||
topic = self._topics[t]
|
||||
writer(' %s %s' % (to_cli(t).ljust(self._mtl), topic[0]))
|
||||
writer()
|
||||
writer(_('Try `ipa --help` for a list of global options.'))
|
||||
for t, topic in sorted(self._topics.items()):
|
||||
writer('%s %s' % (to_cli(t).ljust(self._mtl), topic[0]))
|
||||
|
||||
def print_commands(self, topic, outfile):
|
||||
writer = self._writer(outfile)
|
||||
|
||||
Reference in New Issue
Block a user