OpenBSD Handbook

Current snapshot · amd64 · Generated 2026-09-09

gengetopt-2.22.6p4

command line parser for c programs

Back to search · Project homepage

Description

gengetopt generates a C function that uses getopt_long function to parse the command line options, to validate them and fill a struct. gengetopt is perfect if you are too lazy to write all stuff required to call getopt_long, and when you have a program and wish it took options. Generated code works if you use GNU Autoconf or GNU Automake.

Package information

Ports path
devel/gengetopt
Package architecture
amd64
Maintainer
The OpenBSD ports mailing-list <ports@openbsd.org>
Categories
devel
Available flavors
None listed
Only for architectures
aarch64, amd64, arm, i386, mips64, mips64el, powerpc, powerpc64, riscv64, sparc64, alpha, hppa, m88k, sh

These are ports metadata. Binary availability depends on the release, architecture and mirror. Build and test dependencies are not an installation checklist.

Direct dependencies

None listed in sqlports.

Used by (1 dependency relationships)

Includes library, runtime, build and test relationships. Results load 100 at a time.

Installing and updating packages · Package details as JSON