| Copyright | (c) Simon Bergot |
|---|---|
| License | BSD3 |
| Maintainer | simon.bergot@gmail.com |
| Stability | unstable |
| Portability | portable |
| Safe Haskell | Safe-Inferred |
| Language | Haskell98 |
System.Console.ArgParser.SubParser
Description
Subparsers allows the creation of complex command line applications organized around commands.
- mkSubParser :: [(Arg, CmdLnInterface a)] -> IO (CmdLnInterface a)
- mkSubParserWithName :: String -> [(Arg, CmdLnInterface a)] -> CmdLnInterface a
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