diff options
author | John Wiegley <johnw@newartisans.com> | 2009-11-11 21:32:18 -0500 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-11-11 21:32:32 -0500 |
commit | 67c9cf134d1403657c766e72b96d692a7d538f65 (patch) | |
tree | cd72247ddf240746b524c8fecf6d10f8667b37e4 /src/report.h | |
parent | c22b8457eff27f5227fdf452e036b33e41e229c2 (diff) | |
download | fork-ledger-67c9cf134d1403657c766e72b96d692a7d538f65.tar.gz fork-ledger-67c9cf134d1403657c766e72b96d692a7d538f65.tar.bz2 fork-ledger-67c9cf134d1403657c766e72b96d692a7d538f65.zip |
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
Diffstat (limited to 'src/report.h')
-rw-r--r-- | src/report.h | 2 |
1 files changed, 2 insertions, 0 deletions
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_); |