bug-coreutils
[Top][All Lists]
Advanced

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

Re: Command line parsing with genparse


From: Michael Geng
Subject: Re: Command line parsing with genparse
Date: Tue, 25 Dec 2007 14:16:30 +0100
User-agent: Mutt/1.5.13 (2006-08-11)

On Wed, Dec 19, 2007 at 06:55:56PM +0100, Alfred M. Szmidt wrote:
>    > Debarshi Ray <address@hidden> 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




reply via email to

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