From: Benjamin Peterson Date: Wed, 23 Apr 2008 20:38:06 +0000 (+0000) Subject: #2673 Fix example typo in optparse docs X-Git-Tag: v2.6a3~115 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c8590944e5795ac11ec862337591f5f0e5d82f6f;p=python #2673 Fix example typo in optparse docs --- diff --git a/Doc/library/optparse.rst b/Doc/library/optparse.rst index d72e387a22..7987ceb47b 100644 --- a/Doc/library/optparse.rst +++ b/Doc/library/optparse.rst @@ -1638,7 +1638,7 @@ arguments:: [...] parser.add_option("-c", "--callback", - action="callback", callback=varargs) + action="callback", callback=vararg_callback) The main weakness with this particular implementation is that negative numbers in the arguments following ``"-c"`` will be interpreted as further options