diff options
author | Petr Viktorin <pviktori@redhat.com> | 2012-11-08 08:56:52 -0500 |
---|---|---|
committer | Rob Crittenden <rcritten@redhat.com> | 2013-02-18 13:07:17 -0500 |
commit | de1c4eeae2f3439c1550f9627f45adb4586fa83c (patch) | |
tree | fc4b4c9934f352356447b091ae8dc67449fd3e57 /ipalib/cli.py | |
parent | 6ac0e9b90f14beba5e5a8857c358a292e218cd49 (diff) | |
download | freeipa-de1c4eeae2f3439c1550f9627f45adb4586fa83c.tar.gz freeipa-de1c4eeae2f3439c1550f9627f45adb4586fa83c.tar.xz freeipa-de1c4eeae2f3439c1550f9627f45adb4586fa83c.zip |
Add command summary to `ipa COMMAND --help` output
This makes the output identical to `ipa help COMMAND`.
Part of the effort for https://fedorahosted.org/freeipa/ticket/3060
Diffstat (limited to 'ipalib/cli.py')
-rw-r--r-- | ipalib/cli.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ipalib/cli.py b/ipalib/cli.py index fc6ac6378..ab2918b53 100644 --- a/ipalib/cli.py +++ b/ipalib/cli.py @@ -770,7 +770,6 @@ class help(frontend.Local): cmd = self.Command[name] if cmd.NO_CLI: raise HelpError(topic=name) - writer(_('Purpose: %s') % unicode(_(cmd.doc)).strip()) self.Backend.cli.build_parser(cmd).print_help(outfile) elif mod_name in sys.modules: self.print_commands(name, outfile) @@ -1085,7 +1084,8 @@ class cli(backend.Executioner): def build_parser(self, cmd): parser = CLIOptionParser( - usage=' '.join(self.usage_iter(cmd)) + usage=' '.join(self.usage_iter(cmd)), + description=cmd.summary, ) option_groups = {} for option in cmd.options(): |