Commit 88d96ade authored by Fred Drake's avatar Fred Drake

fix argument name in documentation; match the implementation

parent f6b0e4dc
...@@ -1191,14 +1191,14 @@ OptionValueError if an invalid string is given. ...@@ -1191,14 +1191,14 @@ OptionValueError if an invalid string is given.
The whole point of creating and populating an OptionParser is to call The whole point of creating and populating an OptionParser is to call
its \method{parse{\_}args()} method: its \method{parse{\_}args()} method:
\begin{verbatim} \begin{verbatim}
(options, args) = parser.parse_args(args=None, options=None) (options, args) = parser.parse_args(args=None, values=None)
\end{verbatim} \end{verbatim}
where the input parameters are where the input parameters are
\begin{description} \begin{description}
\item[\code{args}] \item[\code{args}]
the list of arguments to process (default: \code{sys.argv{[}1:]}) the list of arguments to process (default: \code{sys.argv{[}1:]})
\item[\code{options}] \item[\code{values}]
object to store option arguments in (default: a new instance of object to store option arguments in (default: a new instance of
optparse.Values) optparse.Values)
\end{description} \end{description}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment