Added --immediate option

This commit is contained in:
John Wiegley 2012-03-10 21:58:28 -06:00
parent 860610fdaf
commit 2a4d7e1af0
4 changed files with 9 additions and 0 deletions

View file

@ -339,6 +339,7 @@ See
.It Fl \-help-calc
.It Fl \-help-comm
.It Fl \-help-disp
.It Fl \-immediate
.It Fl \-import Ar STR
.It Fl \-init-file Ar FILE
.It Fl \-inject Ar STR

View file

@ -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);

View file

@ -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() {

View file