BSD Ports

devel/p5-Getopt-Tabular 0.3p1 OpenBSD

table-driven argument parsing for Perl 5

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

Description

Getopt::Tabular is a Perl 5 module for table-driven argument parsing, vaguely inspired by John Ousterhout's Tk_ParseArgv. All you really need to do to use the package is set up a table describing all your command-line options, and call &GetOptions with three arguments: a reference to your option table, a reference to @ARGV (or something like it), and an optional third array reference (say, to @newARGV). &GetOptions will process all arguments in @ARGV, and copy any leftover arguments (i.e. those that are not options or arguments to some option) to the @newARGV array. (If the @newARGV argument is not supplied, GetOptions will replace @ARGV with the stripped-down argument list.) If there are any invalid options, GetOptions will print an error message and return 0.

In the other systems

SystemPortVersion
OpenBSDdevel/p5-Getopt-Tabular0.3p1
FreeBSDdevel/p5-Getopt-Tabular0.3_1
NetBSDdevel/p5-Getopt-Tabular0.3nb12
DragonFlydevel/p5-Getopt-Tabular0.3_1
HardenedBSDdevel/p5-Getopt-Tabular0.3_1
GhostBSDdevel/p5-Getopt-Tabular0.3_1

Install

Binary package:

pkg_add p5-Getopt-Tabular

From the ports tree:

cd /usr/ports/devel/p5-Getopt-Tabular && make install

Dependencies

No port depends on this one.