summaryrefslogtreecommitdiff
path: root/src/report.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-02-20 19:10:16 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-02-20 19:10:34 -0400
commit96782df17c5e23dfb86bac745d9f7553a6f74fd4 (patch)
tree838cdc5db002c31a8d1b8ca2a4fe7006442db032 /src/report.h
parent8483ea16e23eefd3281774c142c7117a8a87c245 (diff)
downloadfork-ledger-96782df17c5e23dfb86bac745d9f7553a6f74fd4.tar.gz
fork-ledger-96782df17c5e23dfb86bac745d9f7553a6f74fd4.tar.bz2
fork-ledger-96782df17c5e23dfb86bac745d9f7553a6f74fd4.zip
Enabled --current option
Diffstat (limited to 'src/report.h')
-rw-r--r--src/report.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/report.h b/src/report.h
index 5bd98360..991d60ba 100644
--- a/src/report.h
+++ b/src/report.h
@@ -297,7 +297,9 @@ public:
"%(quoted(join(note)))\n");
});
- OPTION(report_t, current); // -c
+ OPTION_(report_t, current, DO() { // -c
+ parent->HANDLER(limit_).on("date<=today");
+ });
OPTION_(report_t, daily, DO() {
parent->HANDLER(period_).on("daily");