The cmdargs package
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.
Properties
| Versions | 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 |
|---|---|
| Dependencies | base (4.*), transformers (0.2.*) |
| License | BSD3 |
| Copyright | Neil Mitchell 2009-2011 |
| Author | Neil Mitchell <ndmitchell@gmail.com> |
| Maintainer | Neil Mitchell <ndmitchell@gmail.com> |
| Stability | Beta |
| Category | Console |
| Home page | http://community.haskell.org/~ndm/cmdargs/ |
| Executables | cmdargs |
| Upload date | Sat May 7 15:15:07 UTC 2011 |
| Uploaded by | NeilMitchell |
| Built on | ghc-7.0, ghc-7.2 |
| Distributions | Fedora: 0.10, NixOS: 0.10.3, Debian: 0.9.5, FreeBSD: 0.10.2 |
Modules
Downloads
- cmdargs-0.7.tar.gz (Cabal source package)
- package description (included in the package)