From 67c9cf134d1403657c766e72b96d692a7d538f65 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Wed, 11 Nov 2009 21:32:18 -0500 Subject: Added --date, similar to --account and --payee This lets you do things like store a date as the value of a tag, then run: ledger --date='has_tag("Foo") ? to_date(tag("Foo")) : date' reg --- src/report.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/report.h') diff --git a/src/report.h b/src/report.h index e27abbf9..2181c49a 100644 --- a/src/report.h +++ b/src/report.h @@ -217,6 +217,7 @@ public: HANDLER(csv_format_).report(out); HANDLER(current).report(out); HANDLER(daily).report(out); + HANDLER(date_).report(out); HANDLER(date_format_).report(out); HANDLER(datetime_format_).report(out); HANDLER(depth_).report(out); @@ -450,6 +451,7 @@ public: parent->HANDLER(period_).on(string("--daily"), "daily"); }); + OPTION(report_t, date_); OPTION(report_t, date_format_); OPTION(report_t, datetime_format_); -- cgit v1.2.3