BSD Ports

devel/popt 1.19 NetBSD

Command line option parsing library

System
NetBSD
Repository
pkgsrc
Maintainer
[email protected]
License
mit
Categories
devel
Package size
60.2 KiB, 249.0 KiB installed

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

popt is used by rpm, the Red Hat install program, and many other Red Hat utilities, all of which provide excellent examples of how to use popt. Complete documentation on popt is available in popt.ps (included in this tarball), which is excerpted with permission from the book "Linux Application Development" by Michael K. Johnson and Erik Troan (available from Addison Wesley in May, 1998).

Comments on popt should be addressed to [email protected].

In the other systems

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

Install

Binary package:

pkgin install popt

From pkgsrc:

cd /usr/pkgsrc/devel/popt && make install clean

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

RepositoryVersion
NetBSD 10.1 x86_641.19
NetBSD 10.1 aarch641.19
SmartOS / illumos x86_641.19
macOS 15 arm641.19

Dependencies