Copyright | (c) Simon Bergot |
---|---|
License | BSD3 |
Maintainer | simon.bergot@gmail.com |
Stability | unstable |
Portability | portable |
Safe Haskell | Safe-Inferred |
Language | Haskell98 |
Module containing helpers to print information about a parser.
- showCmdLineAppUsage :: CmdLineFormat -> CmdLnInterface a -> String
- showCmdLineVersion :: CmdLnInterface a -> String
- data CmdLineFormat = CmdLineFormat {
- maxKeyWidth :: Int
- keyIndentWidth :: Int
- maxDescrWidth :: Int
- defaultFormat :: CmdLineFormat
Print information about the parser
showCmdLineAppUsage :: CmdLineFormat -> CmdLnInterface a -> String Source
Prints a long usage such as
foo bar [bay]
showCmdLineVersion :: CmdLnInterface a -> String Source
Prints the application name and version
Help formatting
data CmdLineFormat Source
Specification of the help layout
CmdLineFormat | |
|
defaultFormat :: CmdLineFormat Source
Default specification for the help layout