;cli: improve --value help, mention 'then'

This commit is contained in:
Simon Michael 2020-07-13 11:48:15 -07:00
parent d1a5bd7fa2
commit c99989acd7

View File

@ -171,13 +171,12 @@ reportflags = [
]) ])
,flagReq ["value"] (\s opts -> Right $ setopt "value" s opts) "TYPE[,COMM]" ,flagReq ["value"] (\s opts -> Right $ setopt "value" s opts) "TYPE[,COMM]"
(unlines (unlines
["TYPE is cost, end, now or YYYY-MM-DD." ["show amounts converted with valuation TYPE, and optionally to specified commodity COMM. TYPE can be:"
,"COMM is an optional commodity symbol." ,"'cost': convert to cost using transaction prices, then optionally to COMM using period-end market prices"
,"Shows amounts converted to:" ,"'then': convert to contemporaneous market value, in default valuation commodity or COMM (print & register commands only)"
,"- cost using transaction prices, then optionally to COMM using period-end market prices" ,"'end': convert to period-end market value, in default valuation commodity or COMM"
,"- period-end market value, in default valuation commodity or COMM" ,"'now': convert to current market value, in default valuation commodity or COMM"
,"- current market value, in default valuation commodity or COMM" ,"YYYY-MM-DD: convert to market value on the given date, in default valuation commodity or COMM"
,"- market value on the given date, in default valuation commodity or COMM"
]) ])
,flagNone ["infer-value"] (setboolopt "infer-value") "with -V/-X/--value, also infer market prices from transactions" ,flagNone ["infer-value"] (setboolopt "infer-value") "with -V/-X/--value, also infer market prices from transactions"