argparse vs getopt

Eric S. Raymond esr at thyrsus.com
Sat Jun 10 18:38:13 UTC 2017


Gary E. Miller via devel <devel at ntpsec.org>:
> > You might want to think about this, though: the problem with argparse
> > is that it has hidden state and magic action at a distance.  You
> > shouldn't stop at the correct observation that the compactness of an
> > argparse spec makes it look simpler; you should ask whether the gains
> > in compactness are outdone by the probable increase in downstream
> > error rates due to unexpected behavior that you can't spot by looking
> > at the surface code.
> 
> Whoa!  Where did that come from!  Please support that argument with
> some facts.

I don't *know* that argparse fails in this way, though I have dark
suspicions about it.  I was trying to educate Ian in thinking about
the ways that technical debt and the attendent increase in defect
rates can creep up on one.
-- 
		<a href="http://www.catb.org/~esr/">Eric S. Raymond</a>

Please consider contributing to my Patreon page at https://www.patreon.com/esr
so I can keep the invisible wheels of the Internet turning. Give generously -
the civilization you save might be your own.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 811 bytes
Desc: not available
URL: <https://lists.ntpsec.org/pipermail/devel/attachments/20170610/ec5db89b/attachment.bin>


More information about the devel mailing list