Safe Haskell | None |
---|
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.
Opts | |
|
Is the target commodity determined by the user or automatically?
Round to this many decimal places in the Percent report.
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.