cpython (3.2): Issue #11699: fix documentation of OptionParser.get_option_group. Patch by
![](https://secure.gravatar.com/avatar/8ac615df352a970211b0e3d94a307c6d.jpg?s=120&d=mm&r=g)
http://hg.python.org/cpython/rev/cfb60dfa7734 changeset: 71629:cfb60dfa7734 branch: 3.2 parent: 71624:a8aa918041c2 user: Eli Bendersky <eliben@gmail.com> date: Sat Jul 30 11:14:32 2011 +0300 summary: Issue #11699: fix documentation of OptionParser.get_option_group. Patch by Petri Lehtinen files: Doc/library/optparse.rst | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Doc/library/optparse.rst b/Doc/library/optparse.rst --- a/Doc/library/optparse.rst +++ b/Doc/library/optparse.rst @@ -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: -- Repository URL: http://hg.python.org/cpython
participants (1)
-
eli.bendersky