Mercurial > cpython-lru_cache-weakref
diff Doc/library/optparse.rst @ 71629:cfb60dfa7734 3.2
Issue #11699: fix documentation of OptionParser.get_option_group. Patch by Petri Lehtinen
| author | Eli Bendersky <eliben@gmail.com> |
|---|---|
| date | Sat, 30 Jul 2011 11:14:32 +0300 |
| parents | 3c9232a684ae |
| children | 3bbb1a3eca01 |
line wrap: on
line diff
--- a/Doc/library/optparse.rst Sat Jul 30 07:05:16 2011 +0300 +++ b/Doc/library/optparse.rst Sat Jul 30 11:14:32 2011 +0300 @@ -655,8 +655,9 @@ .. method:: OptionParser.get_option_group(opt_str) - Return, if defined, the :class:`OptionGroup` that has the title or the long - description equals to *opt_str* + Return the :class:`OptionGroup` to which the short or long option + string *opt_str* (e.g. ``'-o'`` or ``'--option'``) belongs. If + there's no such :class:`OptionGroup`, return ``None``. .. _optparse-printing-version-string:
