lambda-options-0.9.0.0: A modern command-line parser for Haskell.
Text.LambdaOptions.Keyword
Synopsis
data Keyword Source
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 Source
Convenience Keyword creation class.
Keyword
Methods
toKeyword :: a -> Keyword Source
Used to create a Keyword with a single alias.
Used to create a Keyword with many (or no) aliases
kw :: ToKeyword a => a -> Keyword Source
Shorthand for toKeyword.
toKeyword
argText :: Keyword -> String -> Keyword Source
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 Source
Sets the kwText field in the keyword. Intended to be used infix.
kwText
kw "--quiet" `text` "Suppress message display."