summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-02-13 20:03:58 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-02-13 20:03:58 -0400
commitf15ae10a52f487694b3e9a5963968076fb21dc7b (patch)
tree69061b6ab3247f898385aebe423755d20f23ee4f
parenta87ed245d71d3737c6d56e7a829f361510fd53a6 (diff)
downloadfork-ledger-f15ae10a52f487694b3e9a5963968076fb21dc7b.tar.gz
fork-ledger-f15ae10a52f487694b3e9a5963968076fb21dc7b.tar.bz2
fork-ledger-f15ae10a52f487694b3e9a5963968076fb21dc7b.zip
Enabled --cleared, --uncleared and --pending
Note that the --uncleared flag includes --pending, since it specifically means "not yet cleared".
-rw-r--r--src/report.h17
1 files changed, 14 insertions, 3 deletions
diff --git a/src/report.h b/src/report.h
index 7d601662..467fc121 100644
--- a/src/report.h
+++ b/src/report.h
@@ -238,7 +238,11 @@ public:
OPTION(report_t, by_payee); // -P
OPTION(report_t, cache_);
- OPTION(report_t, cleared); // -C
+
+ OPTION_(report_t, cleared, DO() { // -C
+ parent->append_predicate("cleared");
+ });
+
OPTION(report_t, code_as_payee);
OPTION_(report_t, collapse, DO() { // -n
@@ -333,7 +337,11 @@ public:
OPTION(report_t, output_); // -o
OPTION(report_t, pager_);
- OPTION(report_t, pending);
+
+ OPTION_(report_t, pending, DO() { // -C
+ parent->append_predicate("pending");
+ });
+
OPTION(report_t, percentage); // -%
OPTION(report_t, performance); // -g
OPTION(report_t, period_); // -p
@@ -405,7 +413,10 @@ public:
parent->budget_flags = BUDGET_UNBUDGETED;
});
- OPTION(report_t, uncleared); // -U
+ OPTION_(report_t, uncleared, DO() { // -U
+ parent->append_predicate("uncleared|pending");
+ });
+
OPTION(report_t, weekly); // -W
OPTION(report_t, wide); // -w
OPTION(report_t, wide_register_format_);