hledger-lib-0.27: Core data types, parsers and functionality for the hledger accounting tools

Safe HaskellNone
LanguageHaskell2010

Hledger.Data.RawOptions

Description

hledger's cmdargs modes parse command-line arguments to an intermediate format, RawOpts (an association list), rather than a fixed ADT like CliOpts. This allows the modes and flags to be reused more easily by hledger commands/scripts in this and other packages.

Synopsis

Documentation

type RawOpts = [(String, String)] Source

The result of running cmdargs: an association list of option names to string values.

inRawOpts :: String -> RawOpts -> Bool Source

Is the named option present ?

optserror :: String -> a Source

Raise an error, showing the specified message plus a hint about --help.