summaryrefslogtreecommitdiff
path: root/src/report.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2012-03-08 01:00:16 -0600
committerJohn Wiegley <johnw@newartisans.com>2012-03-08 01:00:16 -0600
commit113fb0ee6a520dccdcd18a634f7ee73acd8ee488 (patch)
treee8038d74b59e2d71cabbfefc3fda5453332a5b77 /src/report.h
parent21e8b7f6f0a182f67899c5cd3689a5e646d8ed4a (diff)
downloadfork-ledger-113fb0ee6a520dccdcd18a634f7ee73acd8ee488.tar.gz
fork-ledger-113fb0ee6a520dccdcd18a634f7ee73acd8ee488.tar.bz2
fork-ledger-113fb0ee6a520dccdcd18a634f7ee73acd8ee488.zip
Added --historical option
Diffstat (limited to 'src/report.h')
-rw-r--r--src/report.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/report.h b/src/report.h
index 515b14c2..d68d1f75 100644
--- a/src/report.h
+++ b/src/report.h
@@ -645,6 +645,14 @@ public:
});
OPTION(report_t, head_);
+
+ OPTION_(report_t, historical, DO() { // -H
+ parent->HANDLER(amount_)
+ .set_expr(string("--historical"),
+ "nail_down(amount_expr, (s,d,t -> market(s,value_date,t)))");
+ });
+
+
OPTION(report_t, inject_);
OPTION_(report_t, invert, DO() {