Issue #11699: fix documentation of OptionParser.get_option_group. Patch by Petri Lehtinen
This commit is contained in:
parent
43162e22c5
commit
dedb502f90
|
@ -657,8 +657,9 @@ option groups is:
|
||||||
|
|
||||||
.. method:: OptionParser.get_option_group(opt_str)
|
.. method:: OptionParser.get_option_group(opt_str)
|
||||||
|
|
||||||
Return, if defined, the :class:`OptionGroup` that has the title or the long
|
Return the :class:`OptionGroup` to which the short or long option
|
||||||
description equals to *opt_str*
|
string *opt_str* (e.g. ``'-o'`` or ``'--option'``) belongs. If
|
||||||
|
there's no such :class:`OptionGroup`, return ``None``.
|
||||||
|
|
||||||
.. _optparse-printing-version-string:
|
.. _optparse-printing-version-string:
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue