BSD Ports

devel/popt 1.16p4 OpenBSD

getopt(3)-like library with a number of enhancements

System
OpenBSD
Repository
OpenBSD ports
Maintainer
The OpenBSD ports mailing-list <[email protected]>
Categories
devel

Description

This is the popt command line option parsing library. While it is similar to getopt(3), it contains a number of enhancements, including:

    1) popt is fully reentrant
    2) popt can parse arbitrary argv\[\] style arrays while
       getopt(2) makes this quite difficult
    3) popt allows users to alias command line arguments
    4) popt provides convenience functions for parsing strings
       into argv\[\] style arrays

In the other systems

SystemPortVersion
OpenBSDdevel/popt1.16p4
FreeBSDdevel/popt1.19,2
NetBSDdevel/popt1.19
DragonFlydevel/popt1.19_1
MidnightBSDdevel/popt1.19
HardenedBSDdevel/popt1.19,2
GhostBSDdevel/popt1.19_2,1
OPNsensedevel/popt1.19_1

Install

Binary package:

pkg_add popt

From the ports tree:

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

Dependencies

Build dependencies 1