[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [help-gengetopt] Use argp for nicer output and more flexibility?
From: |
Lorenzo Bettini |
Subject: |
Re: [help-gengetopt] Use argp for nicer output and more flexibility? |
Date: |
Thu, 26 Jun 2003 09:15:52 +0200 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3.1) Gecko/20030428 |
Simon Josefsson wrote:
Lorenzo Bettini <address@hidden> writes:
Hi there
I don't know argp actually (could you please point me to some quick
reference about it).
The GNU libc manual has a section on argp. argp_parse seem to be a
superset of getopt. Try building the examples and run them, they
behave quite good with minimal effort from the developer.
OK, I'll take a look
E.g. compare from idn:
--quiet Don't print the welcome greeting
(default=off)
With gsasl (uses argp):
--service=STRING Set the requested service name (should be a
registered GSSAPI host based service name).
mh... OK this should be quite easy to do
* Grouping of descriptions. E.g., the "Network.." and "Misc..." text
in gsasl:
...
Network parameters:
--connect=HOSTNAME[:SERVICE]
Connect to TCP server and negotiate on stream
instead of stdin/stdout. SERVICE is the protocol
service, or an integer denoting the port, and
defaults to 143 (imap) if not specified. Also sets
the --hostname default.
Miscellaneous options:
--application-data After authentication, read data from stdin and run
it through the mechanism's security layer and
print it base64 encoded to stdout. The default is
to terminate after authentication.
--imap Use a IMAP-like logon procedure (client only).
Also sets the --service default to "imap".
you have grouping in gengetopt already, probably you want a better
formatting
...
* Generates --version and --usage automatically.
--version is already generated, --usage can be easily added.
I'll try to deal with these issues as soon as possible.
I hope you stay with gengetopt ;-)
cheers
Lorenzo
--
+-----------------------------------------------------+
| Lorenzo Bettini ICQ# lbetto, 16080134 |
| PhD in Computer Science |
| Dip. Sistemi e Informatica, Univ. di Firenze |
| Tel +39 055 4796741, Fax +39 055 4796730 |
| Florence - Italy (GNU/Linux User # 158233) |
| Home Page : http://www.lorenzobettini.it |
| http://music.dsi.unifi.it XKlaim language |
| http://www.lorenzobettini.it/purple Cover Band |
| http://www.gnu.org/software/src-highlite |
| http://www.gnu.org/software/gengetopt |
| http://www.lorenzobettini.it/software/gengen |
+-----------------------------------------------------+