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

This commit is contained in:
Eli Bendersky 2011-07-30 11:14:32 +03:00
parent 7bd081c117
commit e250358062
1 changed files with 3 additions and 2 deletions

View File

@ -655,8 +655,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: