On Wed, Dec 19, 2007 at 06:55:56PM +0100, Alfred M. Szmidt wrote:
>    > Debarshi Ray <[EMAIL PROTECTED]> converted a bunch of tools in
>    > inetutils (http://www.gnu.org/s/inetutils/,
>    > http://sv.gnu.org/p/inetutils/) to use argp instead of
>    > getopt/getopt_long.  Some which have quite hairy parsing
>    > semantics, for example ping which uses children parsers, but that
>    > patch is not in CVS yet.
>    > 
>    > The Hurd also uses argp for some very weird parsing, you can look
>    > at examples at http://sv.gnu.org/p/hurd/.
> 
>    I just downloaded the inetutils, version 1.5 but I can't find any
>    argp code. I looked at ping and ftp. Do I need the latest version
>    from git?
> 
> >From CVS, but yes.  We are trying to get all the tools converted first
> before releasing a new version of inetutils.

I sumbitted a patch to the inetutils mailing list which shows how genparse
could be used for command line parsing of the ping command, see

http://lists.gnu.org/archive/html/bug-inetutils/2007-12/msg00006.html

This exercise hopefully gives you a better understanding of genparse, me 
a better understanding of argp and other people an opportunity to compare 
both tools :-)

Merry Christmas
Michael


_______________________________________________
Bug-coreutils mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-coreutils

Reply via email to