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

Safe HaskellSafe-Inferred

System.Console.CmdTheLine.GetOpt

Description

Adapter for System.Console.GetOpt.

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.