This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Tiny suggestion to improve optparse doc
Type: Stage:
Components: Documentation Versions:
process
Status: closed Resolution: accepted
Dependencies: Superseder:
Assigned To: Nosy List: brett.cannon, lcreighton
Priority: normal Keywords:

Created on 2004-07-03 18:32 by lcreighton, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (2)
msg21387 - (view) Author: Laura Creighton (lcreighton) * Date: 2004-07-03 18:32
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
msg21388 - (view) Author: Brett Cannon (brett.cannon) * (Python committer) Date: 2004-07-10 23:06
Logged In: YES 
user_id=357491

Fixed in rev. 1.14 in CVS.
History
Date User Action Args
2022-04-11 14:56:05adminsetgithub: 40501
2004-07-03 18:32:16lcreightoncreate