[ python-Bugs-984691 ] Tiny suggestion to improve optparse doc
SourceForge.net
noreply at sourceforge.net
Sat Jul 3 14:32:16 EDT 2004
Bugs item #984691, was opened at 2004-07-03 20:32
Message generated for change (Tracker Item Submitted) made by Item Submitter
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: Open
Resolution: None
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
----------------------------------------------------------------------
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