BSD Ports

devel/gengetopt 2.23.1 OpenBSD

command line parser for c programs

System
OpenBSD
Repository
OpenBSD ports
Maintainer
The OpenBSD ports mailing-list <[email protected]>
Last update
Commit
8a21c546f7
Categories
devel

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.

In the other systems

SystemPortVersion
OpenBSDdevel/gengetopt2.23.1
FreeBSDdevel/gengetopt2.23.1
NetBSDdevel/gengetopt2.22.6
DragonFlydevel/gengetopt2.23_1
MidnightBSDdevel/gengetopt2.23_1
HardenedBSDdevel/gengetopt2.23.1
GhostBSDdevel/gengetopt2.23_1

Install

Binary package:

pkg_add gengetopt

From the ports tree:

cd /usr/ports/devel/gengetopt && make install

Dependencies

Commit history 1

DateCommitCreditsLog message
8a21c546f7 sthen update to gengetopt-2.23.1