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. _______________________________________________ bug-inetutils mailing list [email protected] http://lists.gnu.org/mailman/listinfo/bug-inetutils
