lambda-options-0.9.0.0: A modern command-line parser for Haskell.
Text.LambdaOptions.Keyword
Synopsis
data Keyword
An option keyword, such as "--help"
"--help"
Constructors
Fields
All the aliases for this keyword.
Text to describe the arguments to the option given by this keyword.
Text to describe the function of the option given by this keyword.
Instances
Identiy mapping.
class ToKeyword a where
Convenience Keyword creation class.
Keyword
Methods
toKeyword :: a -> Keyword
Used to create a Keyword with a single alias.
Used to create a Keyword with many (or no) aliases
kw :: ToKeyword a => a -> Keyword
Shorthand for toKeyword.
toKeyword
argText :: Keyword -> String -> Keyword
Sets the kwArgText field in the keyword. Intended to be used infix:
kwArgText
kw "--directory" `argText` "DIR" `text` "Write files to DIR."
text :: Keyword -> String -> Keyword
Sets the kwText field in the keyword. Intended to be used infix.
kwText
kw "--quiet" `text` "Suppress message display."