summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Bendersky <eliben@gmail.com>2011-07-30 08:24:38 (GMT)
committerEli Bendersky <eliben@gmail.com>2011-07-30 08:24:38 (GMT)
commitd18ee3bf1457d4b12694ce2e4a047715b5250d69 (patch)
tree9c4ea1a82f78edabefa4d94e781e9c4f540747f9
parent39112a964348aa1fb0ccd08d92eef2fd0c0fbabc (diff)
parente250358062dda5ff6314e5c03070e47370702d1e (diff)
downloadcpython-d18ee3bf1457d4b12694ce2e4a047715b5250d69.zip
cpython-d18ee3bf1457d4b12694ce2e4a047715b5250d69.tar.gz
cpython-d18ee3bf1457d4b12694ce2e4a047715b5250d69.tar.bz2
Merge 3.2: Issue #11699: fix documentation of OptionParser.get_option_group. Patch by Petri Lehtinen
-rw-r--r--Doc/library/optparse.rst5
1 files changed, 3 insertions, 2 deletions
diff --git a/Doc/library/optparse.rst b/Doc/library/optparse.rst
index 58fb7cd..fddc1fb 100644
--- a/Doc/library/optparse.rst
+++ b/Doc/library/optparse.rst
@@ -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: