[issue18979] Use argparse in the uu module

paul j3 report at bugs.python.org
Fri Aug 8 04:28:58 CEST 2014


paul j3 added the comment:

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.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue18979>
_______________________________________


More information about the Python-bugs-list mailing list