Proposed argument changes to ntpq (fixing bug #319)

Gary E. Miller gem at rellim.com
Thu Jun 8 07:12:06 UTC 2017


Yo Eric!

On Wed, 7 Jun 2017 22:46:42 -0400
"Eric S. Raymond" <esr at thyrsus.com> wrote:

> Gary E. Miller via devel <devel at ntpsec.org>:
> > Just make the filename optional. So -l or -l filename  
> 
> Sadly, not practical with any varint of C or Python getopt. We'd have
> to roll our own, and that way madnes lies.

man geetopt:

"If such a character is followed by a colon, the option requires an
argu‐ ment, so getopt() places a pointer to the following text in the
same argv-element, or the text of the following argv-element, in optarg.
Two colons mean an option takes an optional arg;"



RGDS
GARY
---------------------------------------------------------------------------
Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97703
	gem at rellim.com  Tel:+1 541 382 8588

	    Veritas liberabit vos. -- Quid est veritas?
    "If you can’t measure it, you can’t improve it." - Lord Kelvin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <https://lists.ntpsec.org/pipermail/devel/attachments/20170608/066f6ee1/attachment.bin>


More information about the devel mailing list