bug-inetutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug-inetutils] Re: Command line parsing of ping with genparse


From: Alfred M. Szmidt
Subject: [bug-inetutils] Re: Command line parsing of ping with genparse
Date: Tue, 25 Dec 2007 14:17:20 +0100 (CET)

   Attached is a patch which shows how genparse could be used for
   command line parsing of the ping command of the inetutils.

My memory failed me, ping has been already been argpified. I was
really refering to ifconfig, which has very hairy parsing semantics
involving getopt children.

I doubt we will change any time soon from argp, argp is a standard
part of any GNU system variant, it also does somethings that genparse
does not, most notably leaving --help and --version entierly up to
argp and not to the maintainer (while still giving the maintainer
enough room to customise the output, see libinetutils/libinetutils.h).
With genparse (from the little I saw) you must manually handle all
arguments that you wish to parse, building up a list of if-clauses
that handle each option.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]