1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-03 01:23:49 +00:00
freebsd-ports/devel/gengetopt/pkg-descr
Will Andrews ffefb338d5 Add gengetopt 2.1, a program that will generate a C function that uses
getopt_long function to parse the command line options, validate them and
fill a struct.

PR:		21922
Submitted by:	Cyrille Lefevre <clefevre@citeweb.net>
2000-10-28 02:48:45 +00:00

14 lines
533 B
Plaintext

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:
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. For standards
about short and long options you may want to take a look at the GNU Coding
Standards.
WWW: http://www.gnu.org/software/gengetopt/gengetopt.html