summaryrefslogtreecommitdiffstats
path: root/openstack
diff options
context:
space:
mode:
authorMark McLoughlin <markmc@redhat.com>2012-02-22 16:29:59 +0000
committerMark McLoughlin <markmc@redhat.com>2012-02-22 16:29:59 +0000
commitf928399c530cf3f76dd77cbb00bf4453cc39492b (patch)
treecb402f3b3ed115a3e8c0898c58ad37225292f3b6 /openstack
parent9d2e22a24685ad21faf47513f7709555682da88e (diff)
downloadoslo-f928399c530cf3f76dd77cbb00bf4453cc39492b.tar.gz
oslo-f928399c530cf3f76dd77cbb00bf4453cc39492b.tar.xz
oslo-f928399c530cf3f76dd77cbb00bf4453cc39492b.zip
Add ConfigOpts.print_help()
Keystone uses this optparse method. Change-Id: Ic840b2fb2234a12cd94ca671a8d90cd2affe3a5e
Diffstat (limited to 'openstack')
-rw-r--r--openstack/common/cfg.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/openstack/common/cfg.py b/openstack/common/cfg.py
index 4a61182..51c72ec 100644
--- a/openstack/common/cfg.py
+++ b/openstack/common/cfg.py
@@ -961,6 +961,10 @@ class ConfigOpts(collections.Mapping):
"""Print the usage message for the current program."""
self._oparser.print_usage(file)
+ def print_help(self, file=None):
+ """Print the help message for the current program."""
+ self._oparser.print_help(file)
+
def _get(self, name, group=None):
"""Look up an option value.