26aa0848b4
This program generates a C function that uses getopt_long function to parse the command line options, to validate them and fills a struct . Thus your program can now handle options such as: myprog --input foo.c -o foo.o --no-tabs -i 100 *.class And both long options (those that start with --) and short options (start with - and consist of only one character) can be handled. Gengetopt can also generate a function to save the command line options into a file, and a function to read the command line options from a file. Of course, these two kinds of files are compliant.
29 lines
1,020 B
Text
29 lines
1,020 B
Text
@comment $NetBSD: PLIST,v 1.1 2013/10/23 17:41:57 wiz Exp $
|
|
bin/gengetopt
|
|
info/gengetopt.info
|
|
man/man1/gengetopt.1
|
|
share/doc/gengetopt/COPYING
|
|
share/doc/gengetopt/ChangeLog
|
|
share/doc/gengetopt/INSTALL
|
|
share/doc/gengetopt/LICENSE
|
|
share/doc/gengetopt/NEWS
|
|
share/doc/gengetopt/README
|
|
share/doc/gengetopt/THANKS
|
|
share/doc/gengetopt/examples/README.example
|
|
share/doc/gengetopt/examples/cmdline1.c
|
|
share/doc/gengetopt/examples/cmdline1.h
|
|
share/doc/gengetopt/examples/cmdline2.c
|
|
share/doc/gengetopt/examples/cmdline2.h
|
|
share/doc/gengetopt/examples/main1.cc
|
|
share/doc/gengetopt/examples/main2.c
|
|
share/doc/gengetopt/examples/sample1.ggo
|
|
share/doc/gengetopt/examples/sample2.ggo
|
|
share/doc/gengetopt/examples/test_manual_help.c
|
|
share/doc/gengetopt/examples/test_manual_help_cmd.c
|
|
share/doc/gengetopt/examples/test_manual_help_cmd.ggo
|
|
share/doc/gengetopt/examples/test_manual_help_cmd.h
|
|
share/doc/gengetopt/gengetopt.html
|
|
share/doc/gengetopt/index.html
|
|
share/gengetopt/getopt.c
|
|
share/gengetopt/getopt1.c
|
|
share/gengetopt/gnugetopt.h
|