From e250358062dda5ff6314e5c03070e47370702d1e Mon Sep 17 00:00:00 2001
From: Eli Bendersky <eliben@gmail.com>
Date: Sat, 30 Jul 2011 11:14:32 +0300
Subject: [PATCH] Issue #11699: fix documentation of
 OptionParser.get_option_group. Patch by Petri Lehtinen

---
 Doc/library/optparse.rst | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/Doc/library/optparse.rst b/Doc/library/optparse.rst
index 58fb7cd7322..fddc1fbe8b8 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:
 
-- 
2.30.9