On 10/01/11 16:16, Reuben Thomas wrote:
I notice no-one mentioned argp. (I also notice one of autoopts's
testimonials says that it (autoopts) is simpler than argp!). But from
a quick look argp seems rather neat; it doesn't need a separate parser
and code generator, and it's available in gnulib.

Why aren't I using it?

Because there are too many things it doesn't deal with?

http://www.gnu.org/software/autogen/compare.html
http://www.gnu.org/software/autogen/autoopts.html

There are really two parts to option processing:

1.  computing option state, derived from configuration files,
    environment variables and the command line options themselves,

but also:

2.  documenting them and ensuring consistency between all the various
    documents and what the code actually does.  (You may not like man
    pages, but they are the standard way of conveying program usage....)

Only two do both.

Reply via email to