summaryrefslogtreecommitdiffstats
path: root/ipalib/plugable.py
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/plugable.py
parent6e5c15b1db6703922ed690755260f9c58bfaf85b (diff)
downloadfreeipa-50b683dc3c67afbf8ae0b285e52cf148a0b23413.zip
freeipa-50b683dc3c67afbf8ae0b285e52cf148a0b23413.tar.gz
freeipa-50b683dc3c67afbf8ae0b285e52cf148a0b23413.tar.xz
Provide additional help to --help option
Diffstat (limited to 'ipalib/plugable.py')
-rw-r--r--ipalib/plugable.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/ipalib/plugable.py b/ipalib/plugable.py
index 12746c1..3724edf 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):