On 10 November 2013 18:01, Pavel Zlatovratsky
That's good to know.
> I do not intend replace optparse with argparse right now. But I think it
> will be nice to describe argparse as reqirement and use it at least in new
> utils.
I've never really seen the point of optparse: It is clumsy and doesn't
provide much more benefit than getopt. The same seems to be true of
its replacement argparse.
If I was replacing the option parsing code I'd probably replace it
with getopt or a hand-coded parser.
Option parsing has always been in parts of pypng that I'd regarded as
somewhat optional (or at least non-core) which means that it may be
more acceptable to restrict to higher Python versions or use extra
packages. If I was going to use a 3rd party module for option parsing
it would today's favourite: docopt (which by the way is really fun and
I highly recommend it).
drj