]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
SF #1204347: typo fix.
authorGreg Ward <gward@python.net>
Fri, 22 Jul 2005 01:54:54 +0000 (01:54 +0000)
committerGreg Ward <gward@python.net>
Fri, 22 Jul 2005 01:54:54 +0000 (01:54 +0000)
Doc/lib/liboptparse.tex

index 5e7841db7cf429c1fa46e044f9b8745680cb869b..547ac1d981e0d0aba118966b5594fa74d19c0f78 100644 (file)
@@ -584,7 +584,7 @@ foo 1.0
 
 There are two broad classes of errors that \module{optparse} has to worry about:
 programmer errors and user errors.  Programmer errors are usually
-erroneous calls to \code{parse.add{\_}option()}, e.g. invalid option strings,
+erroneous calls to \code{parser.add{\_}option()}, e.g. invalid option strings,
 unknown option attributes, missing option attributes, etc.  These are
 dealt with in the usual way: raise an exception (either
 \code{optparse.OptionError} or \code{TypeError}) and let the program crash.
@@ -1347,7 +1347,7 @@ parser.add_option("--novice", action="store_const",
 
 To avoid this confusion, use \method{set{\_}defaults()}:
 \begin{verbatim}
-parse.set_defaults(mode="advanced")
+parser.set_defaults(mode="advanced")
 parser.add_option("--advanced", action="store_const",
                   dest="mode", const="advanced")
 parser.add_option("--novice", action="store_const",