#use wml::ossp area=pkg:lib subarea=popt OSSP popt

Option Parsing

Abstract

OSSP popt is a derivative of RedHat's POPT library as found in the RedHat Package Manager (RPM). It provides support for parsing short (-f) and long (--foo) command line options. Unlike similar libraries, it does not utilize global variables, thus enabling multiple passes in parsing argument vectors (like argv); it can parse an arbitrary array of argv-style elements, allowing parsing of command-line options from any source; it provides a standard method of option aliasing; it can execute external option filters; and, finally, it can automatically generate help and usage messages for the application.

Notice: OSSP popt is not compatible with the original POPT library, because it uses a different API namespace. Functionality wise it is the same, although the source code was stripped down to its minimum. It made into an OSSP library for easier integration within the OSSP project. It is not intended to replace or to compete with the original POPT library in any way.

Authors

Status

Source