Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell98 |
Synopsis
- cmdDesc :: ParserPrefs -> Parser a -> [(Maybe String, Chunk Doc)]
- briefDesc :: ParserPrefs -> Parser a -> Chunk Doc
- missingDesc :: ParserPrefs -> Parser a -> Chunk Doc
- fullDesc :: ParserPrefs -> Parser a -> Chunk Doc
- globalDesc :: ParserPrefs -> Parser a -> Chunk Doc
- data ParserHelp = ParserHelp {
- helpError :: Chunk Doc
- helpSuggestions :: Chunk Doc
- helpHeader :: Chunk Doc
- helpUsage :: Chunk Doc
- helpDescription :: Chunk Doc
- helpBody :: Chunk Doc
- helpGlobals :: Chunk Doc
- helpFooter :: Chunk Doc
- errorHelp :: Chunk Doc -> ParserHelp
- headerHelp :: Chunk Doc -> ParserHelp
- suggestionsHelp :: Chunk Doc -> ParserHelp
- usageHelp :: Chunk Doc -> ParserHelp
- descriptionHelp :: Chunk Doc -> ParserHelp
- bodyHelp :: Chunk Doc -> ParserHelp
- footerHelp :: Chunk Doc -> ParserHelp
- globalsHelp :: Chunk Doc -> ParserHelp
- parserHelp :: ParserPrefs -> Parser a -> ParserHelp
- parserUsage :: ParserPrefs -> Parser a -> String -> Doc
- parserGlobals :: ParserPrefs -> Parser a -> ParserHelp
Documentation
cmdDesc :: ParserPrefs -> Parser a -> [(Maybe String, Chunk Doc)] Source #
Generate descriptions for commands.
missingDesc :: ParserPrefs -> Parser a -> Chunk Doc Source #
Generate a brief help text for a parser, only including mandatory options and arguments.
globalDesc :: ParserPrefs -> Parser a -> Chunk Doc Source #
Generate a help text for the parser, showing only what is relevant in the "Global options: section"
data ParserHelp Source #
ParserHelp | |
|
Instances
Monoid ParserHelp Source # | |
Defined in Options.Applicative.Help.Types mempty :: ParserHelp # mappend :: ParserHelp -> ParserHelp -> ParserHelp # mconcat :: [ParserHelp] -> ParserHelp # | |
Semigroup ParserHelp Source # | |
Defined in Options.Applicative.Help.Types (<>) :: ParserHelp -> ParserHelp -> ParserHelp # sconcat :: NonEmpty ParserHelp -> ParserHelp # stimes :: Integral b => b -> ParserHelp -> ParserHelp # | |
Show ParserHelp Source # | |
Defined in Options.Applicative.Help.Types showsPrec :: Int -> ParserHelp -> ShowS # show :: ParserHelp -> String # showList :: [ParserHelp] -> ShowS # |
headerHelp :: Chunk Doc -> ParserHelp Source #
suggestionsHelp :: Chunk Doc -> ParserHelp Source #
descriptionHelp :: Chunk Doc -> ParserHelp Source #
footerHelp :: Chunk Doc -> ParserHelp Source #
globalsHelp :: Chunk Doc -> ParserHelp Source #
parserHelp :: ParserPrefs -> Parser a -> ParserHelp Source #
Generate the help text for a program.
parserUsage :: ParserPrefs -> Parser a -> String -> Doc Source #
Generate option summary.
parserGlobals :: ParserPrefs -> Parser a -> ParserHelp Source #