summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/report.cc6
-rw-r--r--src/report.h2
2 files changed, 8 insertions, 0 deletions
diff --git a/src/report.cc b/src/report.cc
index 8cfa7a59..bd2df046 100644
--- a/src/report.cc
+++ b/src/report.cc
@@ -162,6 +162,11 @@ void report_t::normalize_options(const string& verb)
terminus);
}
+ if (HANDLED(immediate) && HANDLED(market)) {
+ HANDLER(amount_)
+ .on("?normalize", "market(amount_expr, value_date, exchange)");
+ }
+
long cols = 0;
if (HANDLED(columns_))
cols = lexical_cast<long>(HANDLER(columns_).value);
@@ -1080,6 +1085,7 @@ option_t<report_t> * report_t::lookup_option(const char * p)
case 'i':
OPT(invert);
else OPT(inject_);
+ else OPT(immediate);
break;
case 'j':
OPT_CH(amount_data);
diff --git a/src/report.h b/src/report.h
index 04fdcd45..a3825335 100644
--- a/src/report.h
+++ b/src/report.h
@@ -273,6 +273,7 @@ public:
HANDLER(group_by_).report(out);
HANDLER(group_title_format_).report(out);
HANDLER(head_).report(out);
+ HANDLER(immediate).report(out);
HANDLER(inject_).report(out);
HANDLER(invert).report(out);
HANDLER(limit_).report(out);
@@ -704,6 +705,7 @@ public:
"market(amount_expr, value_date, exchange))");
});
+ OPTION(report_t, immediate);
OPTION(report_t, inject_);
OPTION_(report_t, invert, DO() {