Issue 984691: Tiny suggestion to improve optparse doc (original) (raw)

Issue984691

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:05 admin set github: 40501
2004-07-03 18:32:16 lcreighton create