Improved the behavior of -X

11 views
Skip to first unread message

John Wiegley

unread,
Mar 9, 2012, 9:37:35 PM3/9/12
to ledge...@googlegroups.com
Up until now, -X support two forms:

-X '$' Value everything in dollars, else don't try
-X '$,EUR' Value everything in dollars, else Euros

This behavior has now been refined. If you say -X '$,EUR', Ledger will no
longer revalue EUR amounts into $. If something is already EUR, it will now
stay EUR, because EUR is in the -X list. Previously, Ledger would try to
value everything in dollars, even though you'd also asked for EUR.

To get the old behavior for any commodity in the -X list, suffix it with a !.
Thus, -X '$!,EUR' now means what -X '$,EUR' *used* to mean: Try to value
everything in dollars as much as you can; failing that, use EUR; failing that,
don't revalue.

This resolves feature request #231.

John

Reply all
Reply to author
Forward
0 new messages