From f15ae10a52f487694b3e9a5963968076fb21dc7b Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Fri, 13 Feb 2009 20:03:58 -0400 Subject: Enabled --cleared, --uncleared and --pending Note that the --uncleared flag includes --pending, since it specifically means "not yet cleared". --- src/report.h | 17 ++++++++++++++--- 1 file 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_); -- cgit v1.2.3