BSD Ports

devel/hs-cmdargs 0.10.22nb5 NetBSD

Command line argument processing

System
NetBSD
Repository
pkgsrc
Maintainer
[email protected]
License
modified-bsd
Categories
devel
Package size
1162.8 KiB, 15827.9 KiB installed

Description

This library provides an easy way to define command line parsers. Most users will want to use the System.Console.CmdArgs.Implicit module, whose documentation contains an example.

* System.Console.CmdArgs.Explicit provides a way to write command line parsers for both single mode programs (most programs) and multiple mode programs (e.g. darcs or cabal). Parsers are defined by constructing a data structure.

* System.Console.CmdArgs.Implicit provides a way to concisely define command line parsers, up to three times shorter than getopt. These parsers are translated into the Explicit data type.

* System.Console.CmdArgs.GetOpt provides a wrapper allowing compatiblity with existing getopt parsers, mapping to the Explicit data type.

For a general reference on what command line flags are commonly used, see http://www.faqs.org/docs/artu/ch10s05.html.

Install

Binary package:

pkgin install hs-cmdargs

From pkgsrc:

cd /usr/pkgsrc/devel/hs-cmdargs && 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_640.10.22nb5
NetBSD 10.1 aarch640.10.22nb5
SmartOS / illumos x86_640.10.22nb5
macOS 15 arm640.10.22nb5

Dependencies

Run dependencies 1