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
- System.Console.CmdArgsThis module re-exports the implicit command line parser.
- System.Console.CmdArgs.AnnotateThis module captures annotations on a value, and builds a Capture value.
- System.Console.CmdArgs.DefaultThis module provides default values for many types.
- System.Console.CmdArgs.ExplicitThis module constructs command lines. You may either use the helper functions
- System.Console.CmdArgs.GetOptThis provides a compatiblity wrapper to the System.Console.GetOpt module in base.
- System.Console.CmdArgs.HelperModule for implementing CmdArgs helpers. A CmdArgs helper is an external program,
- System.Console.CmdArgs.ImplicitThis module provides simple command line argument processing.
- System.Console.CmdArgs.QuoteThis module provides a quotation feature to let you write command line
- System.Console.CmdArgs.TextA module to represent text with very basic formatting. Values are of
- System.Console.CmdArgs.VerbosityA 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.23.0.0with GHC
- filepath-1.5.5.0with GHC
- process-1.6.30.0with GHC
- template-haskell-2.25.0.0with GHC
- transformers-0.6.3.0with GHC