diff --git a/keystone/config.py b/keystone/config.py index ab2f429c0a..18962b292b 100644 --- a/keystone/config.py +++ b/keystone/config.py @@ -32,9 +32,6 @@ class ConfigMixin(object): kw.setdefault('args', []) return super(ConfigMixin, self).__call__(*args, **kw) - def print_help(self): - self._oparser.print_help() - def set_usage(self, usage): self.usage = usage self._oparser.usage = usage diff --git a/keystone/openstack/common/cfg.py b/keystone/openstack/common/cfg.py index 92eecf3026..e92a574acf 100644 --- a/keystone/openstack/common/cfg.py +++ b/keystone/openstack/common/cfg.py @@ -962,6 +962,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.