From c8590944e5795ac11ec862337591f5f0e5d82f6f Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Wed, 23 Apr 2008 20:38:06 +0000 Subject: [PATCH] #2673 Fix example typo in optparse docs --- Doc/library/optparse.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.40.0