[syslog-ng] bugreport for 1.9.5 on solaris [PATCH]

Roberto Nibali ratz at tac.ch
Mon Oct 10 12:18:57 CEST 2005


Hello,

> I'd rather change to using libpopt (although it is another external
> dependency, hmm), it generates usage and help screens nicely, so that's
> sure I won't forget to add them there myself.

Two options IMHO:

1. Use the GLib internal parser [Gg]_option*. I don't exactly know if
   this depends on popt, since I have never used it before myself.

2. Use the glibc internally provided command line parser called argp
   which superseeds getopt. More information and documentation can be
   found in the glibc manual:

http://www.gnu.org/software/libc/manual/html_node/Argp.html#Argp

It's a sexy interface ;), so I'm in favour of option 2. Should be
portable, never tested it though. YMMV.

Cheers,
Roberto Nibali, ratz
-- 
-------------------------------------------------------------
addr://Kasinostrasse 30, CH-5001 Aarau tel://++41 62 823 9355
http://www.terreactive.com             fax://++41 62 823 9356
-------------------------------------------------------------
terreActive AG                       Wir sichern Ihren Erfolg
-------------------------------------------------------------


More information about the syslog-ng mailing list