2000-10-28 04:48:45 +02:00
|
|
|
This program generate a C function that uses getopt_long function to parse
|
|
|
|
the command line options, validate them and fill a struct.
|
|
|
|
|
|
|
|
Thus your program can now handle options such as:
|
|
|
|
|
2001-11-15 06:58:49 +01:00
|
|
|
myprog --input foo.c -o foo.o --no-tabs -i 100 *.class
|
2000-10-28 04:48:45 +02:00
|
|
|
|
|
|
|
And both long options (those that start with --) and short options (start
|
|
|
|
with - and consist of only one character) can be handled. For standards
|
|
|
|
about short and long options you may want to take a look at the GNU Coding
|
|
|
|
Standards.
|
|
|
|
|
2004-03-10 10:41:59 +01:00
|
|
|
WWW: http://www.gnu.org/software/gengetopt/
|