Message225052
Reading through, but not testing, it looks like a faithful replacement. The usage like will be a bit different.
Given optparse:
usage='usage: %prog [-d] [-t] [input [output]]
automatic argparse:
usage='usage: %prog [-d] [-t] [input] [output]
There is, however, a bugs issue about converting the '[..] [..]' into [..[..]].
Other than simplifying the handling of these positional arguments, this replacement doesn't add much.
I haven't paid much attention to issues that replace other uses of optparse. Since that is no longer deprecated, I don't think there's a rush to replace them. |
|
Date |
User |
Action |
Args |
2014-08-08 02:28:58 | paul.j3 | set | recipients:
+ paul.j3, bethard, BreamoreBoy, serhiy.storchaka |
2014-08-08 02:28:58 | paul.j3 | set | messageid: <1407464938.57.0.967037954459.issue18979@psf.upfronthosting.co.za> |
2014-08-08 02:28:58 | paul.j3 | link | issue18979 messages |
2014-08-08 02:28:58 | paul.j3 | create | |
|