The cmdlib package

[Tags: bsd3, library]

A commandline parsing library, based on getopt. Comes with a powerful attribute system. Supports complex interfaces with many options and commands, with option & command grouping, with simple and convenient API. Even though quite powerful, it strives to keep simple things simple. The library uses System.Console.GetOpt as its backend.

In comparison to the other commandline handling libraries:

Compared to cmdargs, cmdlib has a pure attribute system and is based on GetOpt for help formatting & argument parsing. Cmdlib may also be more extendable due to typeclass design, and can use user-supplied types for option arguments.

Cmdargs >= 0.4 can optionally use a pure attribute system, although this is clearly an add-on and the API is a second-class citizen in relation to the impure version.

GetOpt and parseargs both require explicit flag representation, so they live a level below cmdlib. GetOpt is in fact used as a backend by cmdlib.


Properties

Versions0.1, 0.2, 0.2.1, 0.3, 0.3.1, 0.3.2, 0.3.2.1, 0.3.3, 0.3.4, 0.3.5
Dependenciesbase (==4.*), mtl (<2), split, syb or
base (==4.*), mtl (>=2), split, syb, transformers (>=0.2.2)
LicenseBSD3
AuthorPetr Rockai
Maintainerme@mornfall.net
CategorySystem
Source repositoryhead: darcs get http://repos.mornfall.net/cmdlib
Executablescmdlib-rectest, cmdlib-test
Upload dateWed Dec 7 23:23:52 UTC 2011
Uploaded byPetrRockai
DistributionsNixOS:0.3.5
Downloads1218 total (103 in last 30 days)

Modules

[Index]

Flags

NameDescriptionDefault
mtl2Enabled
testBuild test binariesDisabled

Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info

Downloads

Maintainers' corner

For package maintainers and hackage trustees