devel/gengetopt - The NetBSD Packages Collection

Command line parser generator

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.

Build dependencies

devel/libtool-base pkgtools/mktools devel/gmake pkgtools/cwrappers

Runtime dependencies

(none)

Binary packages

OSArchitectureVersion
NetBSD 10.0aarch64gengetopt-2.22.6.tgz
NetBSD 10.0aarch64gengetopt-2.22.6.tgz
NetBSD 10.0aarch64ebgengetopt-2.22.6.tgz
NetBSD 10.0aarch64ebgengetopt-2.22.6.tgz
NetBSD 10.0alphagengetopt-2.22.6.tgz
NetBSD 10.0alphagengetopt-2.22.6.tgz
NetBSD 10.0earmv6hfgengetopt-2.22.6.tgz
NetBSD 10.0earmv6hfgengetopt-2.22.6.tgz
NetBSD 10.0earmv6hfgengetopt-2.22.6.tgz
NetBSD 10.0earmv7hfgengetopt-2.22.6.tgz
NetBSD 10.0earmv7hfgengetopt-2.22.6.tgz
NetBSD 10.0earmv7hfgengetopt-2.22.6.tgz
NetBSD 10.0i386gengetopt-2.22.6.tgz
NetBSD 10.0i386gengetopt-2.22.6.tgz
NetBSD 10.0powerpcgengetopt-2.22.6.tgz
NetBSD 10.0powerpcgengetopt-2.22.6.tgz
NetBSD 10.0powerpcgengetopt-2.22.6.tgz
NetBSD 10.0sh3elgengetopt-2.22.6.tgz
NetBSD 10.0sh3elgengetopt-2.22.6.tgz
NetBSD 10.0sparc64gengetopt-2.22.6.tgz
NetBSD 10.0sparc64gengetopt-2.22.6.tgz
NetBSD 10.0sparcgengetopt-2.22.6.tgz
NetBSD 10.0sparcgengetopt-2.22.6.tgz
NetBSD 10.0vaxgengetopt-2.22.6.tgz
NetBSD 10.0vaxgengetopt-2.22.6.tgz
NetBSD 10.0vaxgengetopt-2.22.6.tgz
NetBSD 10.0x86_64gengetopt-2.22.6.tgz
NetBSD 10.0x86_64gengetopt-2.22.6.tgz
NetBSD 9.0aarch64gengetopt-2.22.6.tgz
NetBSD 9.0aarch64gengetopt-2.22.6.tgz
NetBSD 9.0alphagengetopt-2.22.6.tgz
NetBSD 9.0alphagengetopt-2.22.6.tgz
NetBSD 9.0earmv4gengetopt-2.22.6.tgz
NetBSD 9.0earmv6hfgengetopt-2.22.6.tgz
NetBSD 9.0earmv6hfgengetopt-2.22.6.tgz
NetBSD 9.0earmv6hfgengetopt-2.22.6.tgz
NetBSD 9.0earmv7hfgengetopt-2.22.6.tgz
NetBSD 9.0earmv7hfgengetopt-2.22.6.tgz
NetBSD 9.0earmv7hfgengetopt-2.22.6.tgz
NetBSD 9.0i386gengetopt-2.22.6.tgz
NetBSD 9.0i386gengetopt-2.22.6.tgz
NetBSD 9.0m68kgengetopt-2.22.6.tgz
NetBSD 9.0powerpcgengetopt-2.22.6.tgz
NetBSD 9.0powerpcgengetopt-2.22.6.tgz
NetBSD 9.0powerpcgengetopt-2.22.6.tgz
NetBSD 9.0sparc64gengetopt-2.22.6.tgz
NetBSD 9.0x86_64gengetopt-2.22.6.tgz
NetBSD 9.0x86_64gengetopt-2.22.6.tgz
NetBSD 9.3x86_64gengetopt-2.22.6.tgz

Binary packages can be installed with the high-level tool pkgin (which can be installed with pkg_add) or pkg_add(1) (installed by default). The NetBSD packages collection is also designed to permit easy installation from source.

Available build options

(none)

Known vulnerabilities

The pkg_admin audit command locates any installed package which has been mentioned in security advisories as having vulnerabilities.

Please note the vulnerabilities database might not be fully accurate, and not every bug is exploitable with every configuration.


Problem reports, updates or suggestions for this package should be reported with send-pr.