argparser-0.3.3: Command line parsing framework for console applications

Copyright(c) Simon Bergot
LicenseBSD3
Maintainersimon.bergot@gmail.com
Stabilityunstable
Portabilityportable
Safe HaskellSafe-Inferred
LanguageHaskell98

System.Console.ArgParser.SubParser

Description

Subparsers allows the creation of complex command line applications organized around commands.

Synopsis

Documentation

mkSubParser :: [(Arg, CmdLnInterface a)] -> IO (CmdLnInterface a) Source

Create a parser composed of a list of subparsers.

Each subparser is associated with a command which the user must type to activate.

mkSubParserWithName :: String -> [(Arg, CmdLnInterface a)] -> CmdLnInterface a Source

Same that "mkSubParser" but allows a custom name