Package Info

ghc-cmdargs


Command line argument processing


Unspecified

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>.


License: BSD-3-Clause
URL: https://hackage.haskell.org/package/cmdargs

Categories

Releases

Package Version Update ID Released Package Hub Version Platforms Subpackages
0.10.21-bp155.2.16 info GA Release 2023-05-22 15 SP5
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • ghc-cmdargs
  • ghc-cmdargs-devel
0.10.21-bp154.1.12 info GA Release 2022-05-09 15 SP4
  • AArch64
  • ppc64le
  • x86-64
  • ghc-cmdargs
  • ghc-cmdargs-devel
0.10.20-bp153.1.20 info GA Release 2021-04-08 15 SP3
  • AArch64
  • ppc64le
  • x86-64
  • ghc-cmdargs
  • ghc-cmdargs-devel
0.10.20-bp152.4.13 info GA Release 2020-06-16 15 SP2
  • AArch64
  • ppc64le
  • x86-64
  • ghc-cmdargs
  • ghc-cmdargs-devel
0.10.20-bp151.2.2 info GA Release 2019-07-17 15 SP1
  • ppc64le
  • s390x
  • x86-64
  • ghc-cmdargs
  • ghc-cmdargs-devel
0.10.20-bp151.1.12 info GA Release 2019-05-31 15 SP1
  • AArch64
  • ghc-cmdargs
  • ghc-cmdargs-devel
0.10.17-bp150.2.4 info GA Release 2018-07-30 15
  • AArch64
  • ppc64le
  • x86-64
  • ghc-cmdargs
  • ghc-cmdargs-devel
0.10.14-2.3 info 5585 2016-09-14 12 GA-SP5
  • ppc64le
  • ghc-cmdargs
  • ghc-cmdargs-devel
0.10.14-2.13 info 5585 2016-09-14 12 GA-SP5
  • AArch64
  • s390x
  • x86-64
  • ghc-cmdargs
  • ghc-cmdargs-devel