[ python-Bugs-984691 ] Tiny suggestion to improve optparse doc
SourceForge.net
noreply at sourceforge.net
Sun Jul 11 01:06:29 CEST 2004
Bugs item #984691, was opened at 2004-07-03 11:32
Message generated for change (Settings changed) made by bcannon
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=984691&group_id=5470
Category: Documentation
Group: Not a Bug
>Status: Closed
>Resolution: Accepted
Priority: 5
Submitted By: Laura Creighton (lcreighton)
Assigned to: Nobody/Anonymous (nobody)
Summary: Tiny suggestion to improve optparse doc
Initial Comment:
In section 6.20.2.7 Putting it all together
the usage string is given as
usage = "usage: \%prog [-f] [-v] [-q] firstarg secondarg"
but then later you get to
if len(args) != 1:
parser.error("incorrect number of arguments")
... should be 2, no, to correspond to the usage ....
Laura
----------------------------------------------------------------------
>Comment By: Brett Cannon (bcannon)
Date: 2004-07-10 16:06
Message:
Logged In: YES
user_id=357491
Fixed in rev. 1.14 in CVS.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=984691&group_id=5470
More information about the Python-bugs-list
mailing list