From: Eli Bendersky Date: Sat, 30 Jul 2011 08:12:45 +0000 (+0300) Subject: Issue #11699: fix documentation of OptionParser.get_option_group. Patch by Petri... X-Git-Tag: v2.7.3rc1~558 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=dedb502f90f67b86f10ec014c18bc9ace67ee40f;p=python Issue #11699: fix documentation of OptionParser.get_option_group. Patch by Petri Lehtinen --- diff --git a/Doc/library/optparse.rst b/Doc/library/optparse.rst index d4b121bc8d..39a44bd34b 100644 --- a/Doc/library/optparse.rst +++ b/Doc/library/optparse.rst @@ -657,8 +657,9 @@ option groups is: .. 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: