[Top][All Lists]

[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, 18 Dec 2007 22:54:14 +0100
User-agent: Mutt/1.5.13 (2006-08-11)

On Tue, Dec 18, 2007 at 10:12:41PM +0100, Alfred M. Szmidt wrote:
> You might be interested in argp (part of glibc and gnulib) which does
> more or less what you wish to achive, without the need for initial
> parsing.

I see 2 main advantages of genparse:

1. It does a significant part of the work at compile time. So the
   generated code can be quite simple and fast. 

2. It is able to auto generate a highly configurable usage function. 
   Many of the replies on my previous posts to the coreutils mailing 
   list were about the usage function. argp also can print a usage
   function but how far can you customize it? Has anybody tried to
   convert one of the coreutils tools to use argp? I would be very 
   interested to see a comparison to the genparse solution.


reply via email to

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