summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2009-09-01 08:06:03 (GMT)
committerGeorg Brandl <georg@python.org>2009-09-01 08:06:03 (GMT)
commit8514b85edc420aa1f91c443e7e11629855a170d3 (patch)
tree128d49026d006c8e22ba1f0113b961496aa1c14b /Doc
parent86158fc4c7aa5df7cec7c4b578ad849ab5c47e62 (diff)
downloadcpython-8514b85edc420aa1f91c443e7e11629855a170d3.zip
cpython-8514b85edc420aa1f91c443e7e11629855a170d3.tar.gz
cpython-8514b85edc420aa1f91c443e7e11629855a170d3.tar.bz2
#6638: fix wrong parameter name and markup a class.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/optparse.rst7
1 files changed, 4 insertions, 3 deletions
diff --git a/Doc/library/optparse.rst b/Doc/library/optparse.rst
index 49371be..2fa4388 100644
--- a/Doc/library/optparse.rst
+++ b/Doc/library/optparse.rst
@@ -1171,19 +1171,20 @@ where the input parameters are
the list of arguments to process (default: ``sys.argv[1:]``)
``values``
- object to store option arguments in (default: a new instance of optparse.Values)
+ object to store option arguments in (default: a new instance of
+ :class:`optparse.Values`)
and the return values are
``options``
- the same object that was passed in as ``options``, or the optparse.Values
+ the same object that was passed in as ``values``, or the optparse.Values
instance created by :mod:`optparse`
``args``
the leftover positional arguments after all options have been processed
The most common usage is to supply neither keyword argument. If you supply
-``options``, it will be modified with repeated ``setattr()`` calls (roughly one
+``values``, it will be modified with repeated ``setattr()`` calls (roughly one
for every option argument stored to an option destination) and returned by
:meth:`parse_args`.