summaryrefslogtreecommitdiffstats
path: root/ipalib/cli.py
diff options
context:
space:
mode:
authorPetr Viktorin <pviktori@redhat.com>2012-11-08 08:10:54 -0500
committerRob Crittenden <rcritten@redhat.com>2013-02-18 13:07:17 -0500
commit6ac0e9b90f14beba5e5a8857c358a292e218cd49 (patch)
treee44c6f5fc30947c56d8a4248edc142b2a37b91fc /ipalib/cli.py
parent5ee2216f4973645f18f0ed8eac3c874d81e044ab (diff)
downloadfreeipa-6ac0e9b90f14beba5e5a8857c358a292e218cd49.tar.gz
freeipa-6ac0e9b90f14beba5e5a8857c358a292e218cd49.tar.xz
freeipa-6ac0e9b90f14beba5e5a8857c358a292e218cd49.zip
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
Diffstat (limited to 'ipalib/cli.py')
-rw-r--r--ipalib/cli.py13
1 files changed, 3 insertions, 10 deletions
diff --git a/ipalib/cli.py b/ipalib/cli.py
index a20c06e85..fc6ac6378 100644
--- a/ipalib/cli.py
+++ b/ipalib/cli.py
@@ -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)