From a05d39b7226a7a383dc30132a2fac2bbd30a54ec Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Fri, 6 Nov 2009 02:38:46 -0500 Subject: Renamed --set-reported-account to just --account This fits better with the --amount and --total options, which both change the amount and total used for calculation. Same with --account: it happens after filtering, but before calculation so that balance reports look as you'd expect. --- src/report.cc | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) (limited to 'src/report.cc') diff --git a/src/report.cc b/src/report.cc index 3b570682..77548cce 100644 --- a/src/report.cc +++ b/src/report.cc @@ -566,7 +566,7 @@ option_t * report_t::lookup_option(const char * p) break; case 'a': OPT(abbrev_len_); - else OPT(account_); + else OPT_(account_); else OPT(actual); else OPT(actual_dates); else OPT(add_budget); @@ -589,10 +589,6 @@ option_t * report_t::lookup_option(const char * p) case 'c': OPT(csv_format_); else OPT(cleared); - else OPT(code_as_payee); - else OPT_ALT(comm_as_payee, commodity_as_payee); - else OPT(code_as_account); - else OPT_ALT(comm_as_account, commodity_as_account); else OPT(collapse); else OPT(collapse_if_zero); else OPT(color); @@ -666,7 +662,7 @@ option_t * report_t::lookup_option(const char * p) break; case 'p': OPT(pager_); - else OPT(payee_as_account); + else OPT(payee_); else OPT(pending); else OPT(percent); else OPT_(period_); @@ -694,11 +690,7 @@ option_t * report_t::lookup_option(const char * p) else OPT(revalued_total_); break; case 's': - OPT(set_account_); - else OPT(set_payee_); - else OPT(set_reported_account_); - else OPT(set_reported_payee_); - else OPT(sort_); + OPT(sort_); else OPT(sort_all_); else OPT(sort_xacts_); else OPT_(subtotal); -- cgit v1.2.3