cmdlib: a library for command line parsing & online help
A commandline parsing library, based on getopt. Comes with a powerful attribute system. Supports complex interfaces with many options and commands, with option & command grouping, with simple and convenient API. Even though quite powerful, it strives to keep simple things simple. The library uses System.Console.GetOpt as its backend.
In comparison to the other commandline handling libraries:
Compared to cmdargs, cmdlib has a pure attribute system and is based on GetOpt for help formatting & argument parsing. Cmdlib may also be more extendable due to typeclass design, and can use user-supplied types for option arguments.
Cmdargs >= 0.4 can optionally use a pure attribute system, although this is clearly an add-on and the API is a second-class citizen in relation to the impure version.
GetOpt and parseargs both require explicit flag representation, so they live a level below cmdlib. GetOpt is in fact used as a backend by cmdlib.
Flags
Automatic Flags
Name | Description | Default |
---|---|---|
mtl2 | Enabled | |
test | Build test binaries | Disabled |
Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info
Downloads
- cmdlib-0.3.6.tar.gz [browse] (Cabal source package)
- Package description (revised from the package)
Note: This package has metadata revisions in the cabal description newer than included in the tarball. To unpack the package including the revisions, use 'cabal get'.
Maintainer's Corner
For package maintainers and hackage trustees
Candidates
- No Candidates
Versions [RSS] | 0.1, 0.2, 0.2.1, 0.3, 0.3.1, 0.3.2, 0.3.2.1, 0.3.3, 0.3.4, 0.3.5, 0.3.6 |
---|---|
Dependencies | base (>=4 && <4.12), mtl, split, syb, transformers (>=0.2.2) [details] |
License | BSD-3-Clause |
Author | Petr Rockai |
Maintainer | me@mornfall.net |
Revised | Revision 1 made by AndreasAbel at 2021-10-23T07:47:15Z |
Category | System |
Source repo | head: darcs get http://repos.mornfall.net/cmdlib |
Uploaded | by PetrRockai at 2015-05-28T16:38:34Z |
Distributions | |
Reverse Dependencies | 3 direct, 5 indirect [details] |
Executables | cmdlib-rectest, cmdlib-test |
Downloads | 11307 total (3 in the last 30 days) |
Rating | (no votes yet) [estimated by Bayesian average] |
Your Rating | |
Status | Docs available [build log] Last success reported on 2015-05-28 [all 1 reports] |