summaryrefslogtreecommitdiff
path: root/src/report.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-11-06 02:38:46 -0500
committerJohn Wiegley <johnw@newartisans.com>2009-11-06 02:39:30 -0500
commita05d39b7226a7a383dc30132a2fac2bbd30a54ec (patch)
treeb8a91ddd64b1c7c43612f341bff62530aa986003 /src/report.cc
parent05d0f1a17f9f4a9d659274d91dfb164055453637 (diff)
downloadfork-ledger-a05d39b7226a7a383dc30132a2fac2bbd30a54ec.tar.gz
fork-ledger-a05d39b7226a7a383dc30132a2fac2bbd30a54ec.tar.bz2
fork-ledger-a05d39b7226a7a383dc30132a2fac2bbd30a54ec.zip
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.
Diffstat (limited to 'src/report.cc')
-rw-r--r--src/report.cc14
1 files changed, 3 insertions, 11 deletions
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> * 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> * 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> * 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> * 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);