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.
Versions [faq] | 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 |
---|---|
Dependencies | base (>=4 && <4.10), filepath, process (>=1.0), template-haskell, transformers (>=0.2) [details] |
License | BSD-3-Clause |
Copyright | Neil Mitchell 2009-2013 |
Author | Neil Mitchell <ndmitchell@gmail.com> |
Maintainer | Neil Mitchell <ndmitchell@gmail.com> |
Revised | Revision 1 made by NeilMitchell at Sat Mar 24 14:08:56 UTC 2018 |
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 Fri Apr 5 14:26:55 UTC 2013 |
Distributions | Arch:0.10.20, Debian:0.10.20, Fedora:0.10.20, FreeBSD:0.10.13, LTSHaskell:0.10.20, NixOS:0.10.20, Stackage:0.10.20, openSUSE:0.10.20 |
Executables | cmdargs |
Downloads | 188555 total (966 in the last 30 days) |
Rating | 2.0 (votes: 1) [estimated by rule of succession] |
Your Rating | |
Status | Docs uploaded by user Build status unknown [no reports yet] |
Flags
Name | Description | Default | Type |
---|---|---|---|
testprog | Build the test program | Disabled | Automatic |
quotation | Build the Quote module | Enabled | Automatic |
Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info
Downloads
- cmdargs-0.10.3.tar.gz [browse] (Cabal source package)
- Package description (revised from the package)
Note: This package has metadata revisions in the cabal description newer than included in the tarball. To unpack the package including the revisions, use 'cabal get'.