summaryrefslogtreecommitdiff
path: root/src/report.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-02-20 15:04:55 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-02-20 15:41:49 -0400
commit31feaad1056cda45f3b8cfa0faff45ddc8487c09 (patch)
tree8c69685fae1ec95d37dd1f45ad9a34f43e5dbd61 /src/report.cc
parent40f2ff6d6f7902c4957e0710a5a9d09c1f49ad1e (diff)
downloadledger-31feaad1056cda45f3b8cfa0faff45ddc8487c09.tar.gz
ledger-31feaad1056cda45f3b8cfa0faff45ddc8487c09.tar.bz2
ledger-31feaad1056cda45f3b8cfa0faff45ddc8487c09.zip
Added --no-total option
This simply omits the final total in the balance report, nothing more.
Diffstat (limited to 'src/report.cc')
-rw-r--r--src/report.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/report.cc b/src/report.cc
index da56e141..76f1df39 100644
--- a/src/report.cc
+++ b/src/report.cc
@@ -391,6 +391,7 @@ option_t<report_t> * report_t::lookup_option(const char * p)
break;
case 'n':
OPT_CH(collapse);
+ else OPT(no_total);
break;
case 'o':
OPT(only_);
@@ -481,8 +482,8 @@ expr_t::ptr_op_t report_t::lookup(const string& name)
if (*(q + 1) == '\0' || is_eq(q, "bal") || is_eq(q, "balance"))
return expr_t::op_t::wrap_functor
(reporter<account_t, acct_handler_ptr, &report_t::accounts_report>
- (new format_accounts(*this, report_format(HANDLER(balance_format_)),
- HANDLED(flat)), *this));
+ (new format_accounts(*this, report_format(HANDLER(balance_format_))),
+ *this));
break;
case 'c':