Use cfg's new print_help() method

Change-Id: Ib8e5dc50bc9773d13b8d9c741676477aa0f001e0
This commit is contained in:
Mark McLoughlin
2012-02-23 06:20:40 +00:00
parent 762b461720
commit 1f119bc91f
2 changed files with 4 additions and 3 deletions
-3
View File
@@ -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
+4
View File
@@ -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.