help-gengetopt
[Top][All Lists]
Advanced

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

[help-gengetopt] Use argp for nicer output and more flexibility?


From: Simon Josefsson
Subject: [help-gengetopt] Use argp for nicer output and more flexibility?
Date: Wed, 25 Jun 2003 12:21:12 +0200
User-agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3.50 (gnu/linux)

Hello,

I'm using gengetopt in libidn but I'm considering moving to argp which
IMHO is more flexible and generate nicer output.  E.g., help texts are
flowed (no >80 column texts), parameters can be grouped in the --help
output with some description text, generate --usage.  See glibc manual
for the entire story.

But then I would lose the nice code-generation idea in gengetopt, and
the configuration file parser (which I don't need in libidn, but I
need it in another project which currently uses argp).

So it occurred to me that the best (from my point of view) would be to
generate argp code given the gengetopt description file.  I'm not sure
this could be implemented completely backwards compatible, or if that
is even important, though.

Code for the argp implementation would have to be included, since it
isn't generally available on all platforms, but as it happen I'm
currently working on making the libc argp implementation portable (as
part of gnulib).

What do you think?

Before you ask, I don't volunteer to implement this in gengetopt. :) I
am willing to work on any argp modifications that could be required
though.

Possibly this is more or less a rewrite of gengetopt, so perhaps it
really is a new project instead of a simple modification.





reply via email to

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