diff options
author | John Wiegley <johnw@newartisans.com> | 2009-01-21 18:54:06 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-01-21 18:54:06 -0400 |
commit | eb04b8be85e1af46ba94a00758a50cd1d97bf69e (patch) | |
tree | e4e3df56289b9ee69643c3b5a8db5c2c24eb9f8f /src/report.h | |
parent | e4c7b1753bf5c0fb5f1dd89efeee733fb7b5be23 (diff) | |
download | fork-ledger-eb04b8be85e1af46ba94a00758a50cd1d97bf69e.tar.gz fork-ledger-eb04b8be85e1af46ba94a00758a50cd1d97bf69e.tar.bz2 fork-ledger-eb04b8be85e1af46ba94a00758a50cd1d97bf69e.zip |
Changed the order in which options are processed, to provide for the correct
overrides.
1. Global defaults
2. Environment variable settings
3. Initialization file
4. Command-line arguments
Whatever is later in the list overrides what is earlier.
Diffstat (limited to 'src/report.h')
-rw-r--r-- | src/report.h | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/src/report.h b/src/report.h index 61720a0a..59380949 100644 --- a/src/report.h +++ b/src/report.h @@ -730,20 +730,23 @@ public: } value_t option_quantity(call_scope_t& args) { // O - amount_expr = "amount"; - total_expr = "total"; + show_revalued = false; + amount_expr = "amount"; + total_expr = "total"; return true; } value_t option_cost(call_scope_t& args) { // B - amount_expr = "cost"; - total_expr = "total_cost"; + show_revalued = false; + amount_expr = "cost"; + total_expr = "total_cost"; return true; } value_t option_price(call_scope_t& args) { // I - amount_expr = "price"; - total_expr = "price_total"; + show_revalued = false; + amount_expr = "price"; + total_expr = "price_total"; return true; } |