summaryrefslogtreecommitdiffstats
path: root/ipalib
diff options
context:
space:
mode:
authorRob Crittenden <rcritten@redhat.com>2009-11-18 16:50:16 -0500
committerRob Crittenden <rcritten@redhat.com>2009-11-19 14:38:01 -0500
commit50b683dc3c67afbf8ae0b285e52cf148a0b23413 (patch)
treeb75582d02d8dacccad5e99238c0a5e1d23bd96c2 /ipalib
parent6e5c15b1db6703922ed690755260f9c58bfaf85b (diff)
downloadfreeipa-50b683dc3c67afbf8ae0b285e52cf148a0b23413.tar.gz
freeipa-50b683dc3c67afbf8ae0b285e52cf148a0b23413.tar.xz
freeipa-50b683dc3c67afbf8ae0b285e52cf148a0b23413.zip
Provide additional help to --help option
Diffstat (limited to 'ipalib')
-rw-r--r--ipalib/plugable.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/ipalib/plugable.py b/ipalib/plugable.py
index 12746c12a..3724edf55 100644
--- a/ipalib/plugable.py
+++ b/ipalib/plugable.py
@@ -503,6 +503,13 @@ class API(DictProxy):
dest='interactive',
help='Prompt for NO values (even if required)'
)
+ topics = optparse.OptionGroup(parser, "Available help topics",
+ "ipa help topics")
+ cmds = optparse.OptionGroup(parser, "Available commands",
+ "ipa help commands")
+ parser.add_option_group(topics)
+ parser.add_option_group(cmds)
+
return parser
def bootstrap_with_global_options(self, parser=None, context=None):