cmdtheline-0.2.3: Declarative command-line option parsing and documentation library.

Safe HaskellSafe-Inferred
LanguageHaskell98

System.Console.CmdTheLine.GetOpt

Description

Synopsis

Documentation

optDescrsTerm :: [OptDescr a] -> Term [a] Source

Sequence a list of OptDescrs into a term. Absent flags (specified with NoArg) are filtered out.

optDescrToTerm :: OptDescr a -> Term (Maybe a) Source

Convert an OptDescr into a Term which returns Nothing if NoArg is specified and the flag is absent or Just the argument otherwise.