console-program: Interprets command line arguments and the contents of a config file as commands and options

[ bsd3, console, library, system ] [ Propose Tags ]

This library provides an infrastructure to build command line programs. It provides the following features:

  • declare any number of "actions" (commands, or modes of operation, of the program);

  • declare options of the program;

  • collect options and actions from a configuration file and the command line, and execute the proper action.

Examples of using this library may be found in the Examples directory in the package tarball.

It provides functionality similar to the cmdargs package. Main differences:

  • console-program does not use unsafePerformIO, and tries to give a more haskellish, referentially transparent interface;

  • it allows a full tree of "modes", instead of a list, so a command can have subcommands;

  • it parses a configuration file, in addition to the command line arguments.

Modules

[Last Documentation]

  • System
    • Console
      • System.Console.Argument
      • System.Console.Command
      • System.Console.Program

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 0.1.0.0, 0.1.0.1, 0.1.0.2, 0.2.0.0, 0.2.0.1, 0.3.0.0, 0.3.0.1, 0.3.1.0, 0.3.1.1, 0.3.1.2, 0.3.1.3, 0.3.1.4, 0.3.2.0, 0.4.0.0, 0.4.0.1, 0.4.0.2, 0.4.0.3, 0.4.1.0, 0.4.2.0, 0.4.2.1, 0.4.2.2, 0.4.2.3 (info)
Dependencies ansi-terminal (>=0.5 && <0.6), ansi-wl-pprint (>=0.5 && <0.7), base (>=4 && <5), containers (>=0.1 && <0.6), directory (>=1.0 && <1.2), fez-conf (>=1.0 && <1.1), haskeline (>=0.7 && <0.8), parsec (>=3.1 && <3.2), parsec-extra (>=0.1 && <0.2), split (>=0.2 && <0.3), transformers (>=0.2 && <0.4), utility-ht (>=0.0 && <0.1) [details]
License BSD-3-Clause
Author Arie Peterson
Maintainer ariep@xs4all.nl
Category System
Source repo head: darcs get http://patch-tag.com/r/AriePeterson/console-program
Uploaded by AriePeterson at 2012-11-04T14:53:24Z
Distributions
Reverse Dependencies 1 direct, 0 indirect [details]
Downloads 16224 total (52 in the last 30 days)
Rating 2.0 (votes: 1) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs not available [build log]
All reported builds failed as of 2016-12-23 [all 7 reports]