argparse vs getopt
Matthew.Selsky at twosigma.com
Wed Jun 14 06:39:41 UTC 2017
Only new NTPsec programs use argparse. Everything that's replacing NTP Classic C code uses getopt, so that we can support python2.6 (RHEL 6 default python)
From: Gary E. Miller via devel <devel at ntpsec.org<mailto:devel at ntpsec.org>>
Date: Saturday, Jun 10, 2017, 13:48
To: Eric S. Raymond via devel <devel at ntpsec.org<mailto:devel at ntpsec.org>>
Subject: Re: argparse vs getopt
On Sat, 10 Jun 2017 09:45:17 -0400
"Eric S. Raymond via devel" <devel at ntpsec.org> wrote:
> There is one thing you have failed to check: whether argparse is
> portable to the oldest Python we support.
It is. Supported by the fact NTPsec Pthon programs have been using it
for a while without complaint.
> Overall, well done. I said I was looking for quality of fact
> gathering and reasoning, and you supplied that. Once you've done the
> portability check I'll call it successful task completion.
More information about the devel