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
- allOptSpecs :: [OptSpec (Opts -> Exceptional String 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.
Is the target commodity determined by the user or automatically?
allOptSpecs :: [OptSpec (Opts -> Exceptional String 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.