]> granicus.if.org Git - python/commitdiff
SF #1366250: optparse docs: fix inconsistency in variable name; minor tweaks.
authorGreg Ward <gward@python.net>
Sun, 11 Jun 2006 14:42:41 +0000 (14:42 +0000)
committerGreg Ward <gward@python.net>
Sun, 11 Jun 2006 14:42:41 +0000 (14:42 +0000)
Doc/lib/liboptparse.tex
Misc/NEWS

index 6f12295465888e1894c5eb996948f1a1026212be..e50247ab4ad4bf5e8047bfce3921a5db87a10b82 100644 (file)
@@ -1197,16 +1197,16 @@ its \method{parse{\_}args()} method:
 where the input parameters are
 \begin{description}
 \item[\code{args}]
-the list of arguments to process (\code{sys.argv{[}1:]} by default)
+the list of arguments to process (default: \code{sys.argv{[}1:]})
 \item[\code{options}]
-object to store option arguments in (a new instance of
-optparse.Values by default)
+object to store option arguments in (default: a new instance of
+optparse.Values)
 \end{description}
 
 and the return values are
 \begin{description}
 \item[\code{options}]
-the same object as was passed in as \code{options}, or the new
+the same object that was passed in as \code{options}, or the
 optparse.Values instance created by \module{optparse}
 \item[\code{args}]
 the leftover positional arguments after all options have been
@@ -1214,9 +1214,9 @@ processed
 \end{description}
 
 The most common usage is to supply neither keyword argument.  If you
-supply a \code{values} object, it will be repeatedly modified with a
-\code{setattr()} call for every option argument written to an option
-destination, and finally returned by \method{parse{\_}args()}.
+supply \code{options}, it will be modified with repeated \code{setattr()}
+calls (roughly one for every option argument stored to an option
+destination) and returned by \method{parse{\_}args()}.
 
 If \method{parse{\_}args()} encounters any errors in the argument list, it calls
 the OptionParser's \method{error()} method with an appropriate end-user error
index 80e6d95a8da02a7c1749a0363ac0b938238247fc..579f9406b42ff7060775089d5ed2e033e410fdd4 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -145,6 +145,8 @@ Extension Modules
 Library
 -------
 
+- Bug #1366250: minor optparse documentation error.
+
 - Bug #1361643: fix textwrap.dedent() so it handles tabs appropriately;
   clarify docs.