Safe Haskell | None |
---|
Penny.Cabin.Balance.Convert.Parser
Description
Parsing options for the Convert report from the command line.
- data Opts = Opts {}
- data Target
- = AutoTarget
- | ManualTarget To
- data SortBy
- = SortByQty
- | SortByName
- newtype RoundTo = RoundTo {}
- allOptSpecs :: [OptSpec (Opts -> Opts)]
Documentation
Default starting options for the Convert report. After considering what is parsed in from the command line and price data, a Convert.Opts will be generated.
Constructors
Opts | |
Fields
|
Is the target commodity determined by the user or automatically?
Constructors
AutoTarget | |
ManualTarget To |
Round to this many decimal places in the Percent report.
Constructors
RoundTo | |
Fields |
allOptSpecs :: [OptSpec (Opts -> Opts)]Source
Do not be tempted to change the setup in this module so that the individual functions such as parseColor and parseBackground return parsers rather than OptSpec. Such an arrangement breaks the correct parsing of abbreviated long options.