argparse vs getopt

Matt Selsky Matthew.Selsky at
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<mailto:devel at>>
Date: Saturday, Jun 10, 2017, 13:48
To: Eric S. Raymond via devel <devel at<mailto:devel at>>
Subject: Re: argparse vs getopt

Yo Eric!

On Sat, 10 Jun 2017 09:45:17 -0400
"Eric S. Raymond via devel" <devel at> 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 mailing list