cmdargs: Command line argument processing

[ bsd3, console, library ] [ Propose Tags ] [ Report a vulnerability ]

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
NameDescriptionDefault
testprog

Build the test program

Enabled

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

Downloads

Maintainer's Corner

Package maintainers

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, mtl [details]
License BSD-3-Clause
Copyright Neil Mitchell 2009-2010
Author Neil Mitchell <ndmitchell@gmail.com>
Maintainer Neil Mitchell <ndmitchell@gmail.com>
Category Console
Home page http://community.haskell.org/~ndm/cmdargs/
Uploaded by NeilMitchell at 2010-08-23T18:40:01Z
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 99 direct, 267 indirect [details]
Executables cmdargs
Downloads 238688 total (342 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]