From f928399c530cf3f76dd77cbb00bf4453cc39492b Mon Sep 17 00:00:00 2001 From: Mark McLoughlin Date: Wed, 22 Feb 2012 16:29:59 +0000 Subject: Add ConfigOpts.print_help() Keystone uses this optparse method. Change-Id: Ic840b2fb2234a12cd94ca671a8d90cd2affe3a5e --- openstack/common/cfg.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'openstack') 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. -- cgit