cmdargs: Command line argument processing
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.
Flags
Automatic Flags
Name | Description | Default |
---|---|---|
testprog | Build the test program | Enabled |
quotation | Build the Quote module | Enabled |
Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info
Downloads
- cmdargs-0.9.7.tar.gz [browse] (Cabal source package)
- Package description (as included in the package)
Maintainer's Corner
For package maintainers and hackage trustees
Candidates
- No Candidates
Versions [RSS] | 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.6.1, 0.6.2, 0.6.3, 0.6.4, 0.6.5, 0.6.6, 0.6.7, 0.6.8, 0.6.9, 0.6.10, 0.7, 0.8, 0.9, 0.9.1, 0.9.2, 0.9.3, 0.9.4, 0.9.5, 0.9.6, 0.9.7, 0.10, 0.10.1, 0.10.2, 0.10.3, 0.10.4, 0.10.5, 0.10.6, 0.10.7, 0.10.8, 0.10.9, 0.10.10, 0.10.11, 0.10.12, 0.10.13, 0.10.14, 0.10.15, 0.10.16, 0.10.17, 0.10.18, 0.10.19, 0.10.20, 0.10.21, 0.10.22 |
---|---|
Dependencies | base (>=4 && <5), filepath, process (>=1.0 && <1.2), template-haskell, transformers (>=0.2 && <0.4) [details] |
License | BSD-3-Clause |
Copyright | Neil Mitchell 2009-2012 |
Author | Neil Mitchell <ndmitchell@gmail.com> |
Maintainer | Neil Mitchell <ndmitchell@gmail.com> |
Category | Console |
Home page | http://community.haskell.org/~ndm/cmdargs/ |
Source repo | head: darcs get http://community.haskell.org/~ndm/darcs/cmdargs/ |
Uploaded | by NeilMitchell at 2012-08-09T17:28:20Z |
Distributions | Arch:0.10.22, Debian:0.10.20, Fedora:0.10.22, FreeBSD:0.10.13, LTSHaskell:0.10.22, NixOS:0.10.22, Stackage:0.10.22, openSUSE:0.10.22 |
Reverse Dependencies | 98 direct, 267 indirect [details] |
Executables | cmdargs |
Downloads | 238558 total (409 in the last 30 days) |
Rating | 2.25 (votes: 2) [estimated by Bayesian average] |
Your Rating | |
Status | Docs uploaded by user Build status unknown [no reports yet] |