Package0.10.22Console
cmdargs
Command line argument processing
- Version0.10.22
- CategoryConsole
- LicenceBSD-3-Clause
- AuthorNeil Mitchell <ndmitchell@gmail.com>
- MaintainerNeil Mitchell <ndmitchell@gmail.com>
- Homepagegithub.com/ndmitchell/cmdargs#readme
- Pinned byhackage cmdargs 0.10.22
- Sourcehackage.haskell.org/package/cmdargs-0.10.22
Modules
10 modules- System.Console.CmdArgs0This module re-exports the implicit command line parser.
- System.Console.CmdArgs.Annotate13This module captures annotations on a value, and builds a Capture value.
- System.Console.CmdArgs.Default1This module provides default values for many types.
- System.Console.CmdArgs.Explicit43This module constructs command lines. You may either use the helper functions
- System.Console.CmdArgs.GetOpt7This provides a compatiblity wrapper to the System.Console.GetOpt module in base.
- System.Console.CmdArgs.Helper5Module for implementing CmdArgs helpers. A CmdArgs helper is an external program,
- System.Console.CmdArgs.Implicit40This module provides simple command line argument processing.
- System.Console.CmdArgs.Quote6This module provides a quotation feature to let you write command line
- System.Console.CmdArgs.Text4A module to represent text with very basic formatting. Values are of
- System.Console.CmdArgs.Verbosity7A module to deal with verbosity, how 'chatty' a program should be.
Description
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.
Depends on
5 packages- base-4.20.2.0with GHC
- filepath-1.5.4.0with GHC
- process-1.6.26.1with GHC
- template-haskell-2.22.0.0with GHC
- transformers-0.6.1.1with GHC