Commit e2503580 authored by Eli Bendersky's avatar Eli Bendersky

Issue #11699: fix documentation of OptionParser.get_option_group. Patch by Petri Lehtinen

parent 7bd081c1
...@@ -655,8 +655,9 @@ option groups is: ...@@ -655,8 +655,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:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment