[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: gengetopt, anyone?
From: |
Bruce Korb |
Subject: |
Re: gengetopt, anyone? |
Date: |
Sun, 02 Oct 2011 12:19:53 -0700 |
User-agent: |
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.18) Gecko/20110616 SUSE/3.1.11 Thunderbird/3.1.11 |
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.
- Re: gengetopt, anyone?, Reuben Thomas, 2011/10/01
- Re: gengetopt, anyone?,
Bruce Korb <=
- Re: gengetopt, anyone?, Bruno Haible, 2011/10/02
- Re: gengetopt, anyone?, Simon Josefsson, 2011/10/02
- Re: gengetopt, anyone?, Rhys Ulerich, 2011/10/02