Portability | portable |
---|---|
Stability | unstable |
Maintainer | simon.bergot@gmail.com |
Safe Haskell | Safe-Inferred |
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 -> StringSource
Prints a long usage such as
foo bar [bay]
showCmdLineVersion :: CmdLnInterface a -> StringSource
Prints the application name and version
Help formatting
data CmdLineFormat Source
Specification of the help layout
CmdLineFormat | |
|
defaultFormat :: CmdLineFormatSource
Default specification for the help layout