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
| System | Port | Version |
|---|---|---|
| OpenBSD | devel/gengetopt | 2.23.1 |
| FreeBSD | devel/gengetopt | 2.23.1 |
| NetBSD | devel/gengetopt | 2.22.6 |
| DragonFly | devel/gengetopt | 2.23_1 |
| MidnightBSD | devel/gengetopt | 2.23_1 |
| HardenedBSD | devel/gengetopt | 2.23.1 |
| GhostBSD | devel/gengetopt | 2.23_1 |
Install
Binary package:
pkg_add gengetopt
From the ports tree:
cd /usr/ports/devel/gengetopt && make install