diff options
| author | Jenkins <jenkins@review.openstack.org> | 2012-03-10 03:15:47 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2012-03-10 03:15:47 +0000 |
| commit | da2f9daf9c816164a9bfbe15d1a1004adfe60a58 (patch) | |
| tree | aa7a22c3257de104bd1ee39eff3b308aff4d9b30 /nova/openstack | |
| parent | 0f8f1757ae8b8e55bfba5644254b653dc9af8223 (diff) | |
| parent | 77ca96b5469069e1f96f665f46e96bfaa8961b6c (diff) | |
| download | nova-da2f9daf9c816164a9bfbe15d1a1004adfe60a58.tar.gz nova-da2f9daf9c816164a9bfbe15d1a1004adfe60a58.tar.xz nova-da2f9daf9c816164a9bfbe15d1a1004adfe60a58.zip | |
Merge "Update cfg from openstack-common"
Diffstat (limited to 'nova/openstack')
| -rw-r--r-- | nova/openstack/common/cfg.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/nova/openstack/common/cfg.py b/nova/openstack/common/cfg.py index 18ae002df..586aa7744 100644 --- a/nova/openstack/common/cfg.py +++ b/nova/openstack/common/cfg.py @@ -691,7 +691,7 @@ class OptGroup(object): return self._optparse_group -class ConfigOpts(collections.Mapping, object): +class ConfigOpts(collections.Mapping): """ Config options which may be set on the command line or in config files. @@ -964,6 +964,10 @@ class ConfigOpts(collections.Mapping, object): """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. @@ -1076,7 +1080,7 @@ class ConfigOpts(collections.Mapping, object): not_read_ok = filter(lambda f: f not in read_ok, config_files) raise ConfigFilesNotFoundError(not_read_ok) - class GroupAttr(collections.Mapping, object): + class GroupAttr(collections.Mapping): """ A helper class representing the option values of a group as a mapping |
