commodity flags cleanup

4 views
Skip to first unread message

Simon Michael

unread,
Jan 22, 2012, 8:55:58 PM1/22/12
to ledge...@googlegroups.com, hle...@googlegroups.com
Hey all,

I have confused myself a great deal with -B/-V/-X, as a user and implementor. I have been studying http://ledger-cli.org/3.0/doc/ledger.1.html and https://groups.google.com/forum/#!topic/ledger-cli/9oa47zA-qqM/discussion, thinking, and getting a bit clearer. What do you think of the following slight semantic and UI cleanup ?


2. 

--cost/-B
shows amounts as their transaction price, where specified.

--market-value/-V [COMMODITY] [--now DATE]
shows amounts as their value in COMMODITY as of today (or another date
specified with --now) using P historical prices, if possible. If
COMMODITY is not specified, the first suitable one found in the
journal's P directives is used.

--convert/--exchange/-X [--now DATE]
after generating a report, does a final conversion of all amounts to
their value in COMMODITY as of today (or another date specified with
--now), where possible. (This is orthogonal to -B and -V.)

Best,
-Simon

John Wiegley

unread,
Jan 30, 2012, 6:11:56 PM1/30/12
to hle...@googlegroups.com, ledge...@googlegroups.com
>>>>> Martin Michlmayr <t...@cyrius.com> writes:

> Yep, this is something I'd like to see. At the moment, -X implies -V, even
> though there are a lot of use cases where I want to use -X -B.

I agree, and I intend to make changes to support this kind of "mix and match"
reporting. Ledger has always been about giving you the core tools, rather
than forcing a particular view of your data.

John

Reply all
Reply to author
Forward
0 new messages