summaryrefslogtreecommitdiff
path: root/src/report.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2010-02-02 17:07:05 -0500
committerJohn Wiegley <johnw@newartisans.com>2010-02-02 17:07:05 -0500
commit141308597784f77414032b00f239e0601f9d4d38 (patch)
treecfbe1311abbffc7fd05578f8cf0f8ffdf4120f84 /src/report.h
parenta56a1db66294c06c7b9d582f694538a0cb473abf (diff)
downloadfork-ledger-141308597784f77414032b00f239e0601f9d4d38.tar.gz
fork-ledger-141308597784f77414032b00f239e0601f9d4d38.tar.bz2
fork-ledger-141308597784f77414032b00f239e0601f9d4d38.zip
Added a --pivot=TAG option
This is equivalent to the following: --account='"TAG:" + tag(/TAG/)'
Diffstat (limited to 'src/report.h')
-rw-r--r--src/report.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/report.h b/src/report.h
index 75f3b1ff..08819e23 100644
--- a/src/report.h
+++ b/src/report.h
@@ -273,6 +273,7 @@ public:
HANDLER(pending).report(out);
HANDLER(percent).report(out);
HANDLER(period_).report(out);
+ HANDLER(pivot_).report(out);
HANDLER(plot_amount_format_).report(out);
HANDLER(plot_total_format_).report(out);
HANDLER(prepend_format_).report(out);
@@ -715,6 +716,8 @@ public:
string_value(text.as_string() + " " + str()));
});
+ OPTION(report_t, pivot_);
+
OPTION__(report_t, plot_amount_format_, CTOR(report_t, plot_amount_format_) {
on(none,
"%(format_date(date, \"%Y-%m-%d\")) %(quantity(scrub(display_amount)))\n");