13 Oct
2005
13 Oct
'05
6:07 a.m.
On Mon, 10 Oct 2005 12:18pm +0200, Roberto Nibali wrote:
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.
I'd like to suggest the 'getopt' module of gnulib. The code is exactly the same as glibc's version and there is the added funcionality of the macros and headers for the autotools settings. -- Felipe Kellermann