summaryrefslogtreecommitdiff
path: root/src/report.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-02-08 05:18:46 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-02-08 05:18:46 -0400
commit59aefb5a3b0df32b1008bb5f5008daf879f5ff5f (patch)
tree2182085dfa1ac4ea564d383c08cd7c5665033074 /src/report.h
parentd6d0b75bf0e80bd8402540bc98caec35d8bc0a53 (diff)
downloadledger-59aefb5a3b0df32b1008bb5f5008daf879f5ff5f.tar.gz
ledger-59aefb5a3b0df32b1008bb5f5008daf879f5ff5f.tar.bz2
ledger-59aefb5a3b0df32b1008bb5f5008daf879f5ff5f.zip
Inverted the default display mode for balance reports. Use -n to collapse
them, as this fits better with what -n does for register reports.
Diffstat (limited to 'src/report.h')
-rw-r--r--src/report.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/report.h b/src/report.h
index 1aff9212..8bcd6b57 100644
--- a/src/report.h
+++ b/src/report.h
@@ -219,7 +219,12 @@ public:
OPTION(report_t, cache_);
OPTION(report_t, cleared); // -C
OPTION(report_t, code_as_payee);
- OPTION(report_t, collapse); // -n
+
+ OPTION_(report_t, collapse, DO() { // -n
+ // Make sure that balance reports are collapsed too
+ parent->append_display_predicate("depth<=1");
+ });
+
OPTION(report_t, comm_as_payee); // -x
OPTION(report_t, cost);
OPTION(report_t, csv_format_);