Added --immediate option
This commit is contained in:
parent
860610fdaf
commit
2a4d7e1af0
4 changed files with 9 additions and 0 deletions
|
|
@ -339,6 +339,7 @@ See
|
||||||
.It Fl \-help-calc
|
.It Fl \-help-calc
|
||||||
.It Fl \-help-comm
|
.It Fl \-help-comm
|
||||||
.It Fl \-help-disp
|
.It Fl \-help-disp
|
||||||
|
.It Fl \-immediate
|
||||||
.It Fl \-import Ar STR
|
.It Fl \-import Ar STR
|
||||||
.It Fl \-init-file Ar FILE
|
.It Fl \-init-file Ar FILE
|
||||||
.It Fl \-inject Ar STR
|
.It Fl \-inject Ar STR
|
||||||
|
|
|
||||||
|
|
@ -162,6 +162,11 @@ void report_t::normalize_options(const string& verb)
|
||||||
terminus);
|
terminus);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (HANDLED(immediate) && HANDLED(market)) {
|
||||||
|
HANDLER(amount_)
|
||||||
|
.on("?normalize", "market(amount_expr, value_date, exchange)");
|
||||||
|
}
|
||||||
|
|
||||||
long cols = 0;
|
long cols = 0;
|
||||||
if (HANDLED(columns_))
|
if (HANDLED(columns_))
|
||||||
cols = lexical_cast<long>(HANDLER(columns_).value);
|
cols = lexical_cast<long>(HANDLER(columns_).value);
|
||||||
|
|
@ -1080,6 +1085,7 @@ option_t<report_t> * report_t::lookup_option(const char * p)
|
||||||
case 'i':
|
case 'i':
|
||||||
OPT(invert);
|
OPT(invert);
|
||||||
else OPT(inject_);
|
else OPT(inject_);
|
||||||
|
else OPT(immediate);
|
||||||
break;
|
break;
|
||||||
case 'j':
|
case 'j':
|
||||||
OPT_CH(amount_data);
|
OPT_CH(amount_data);
|
||||||
|
|
|
||||||
|
|
@ -273,6 +273,7 @@ public:
|
||||||
HANDLER(group_by_).report(out);
|
HANDLER(group_by_).report(out);
|
||||||
HANDLER(group_title_format_).report(out);
|
HANDLER(group_title_format_).report(out);
|
||||||
HANDLER(head_).report(out);
|
HANDLER(head_).report(out);
|
||||||
|
HANDLER(immediate).report(out);
|
||||||
HANDLER(inject_).report(out);
|
HANDLER(inject_).report(out);
|
||||||
HANDLER(invert).report(out);
|
HANDLER(invert).report(out);
|
||||||
HANDLER(limit_).report(out);
|
HANDLER(limit_).report(out);
|
||||||
|
|
@ -704,6 +705,7 @@ public:
|
||||||
"market(amount_expr, value_date, exchange))");
|
"market(amount_expr, value_date, exchange))");
|
||||||
});
|
});
|
||||||
|
|
||||||
|
OPTION(report_t, immediate);
|
||||||
OPTION(report_t, inject_);
|
OPTION(report_t, inject_);
|
||||||
|
|
||||||
OPTION_(report_t, invert, DO() {
|
OPTION_(report_t, invert, DO() {
|
||||||
|
|
|
||||||
0
test/baseline/opt-immediate.test
Normal file
0
test/baseline/opt-immediate.test
Normal file
Loading…
Add table
Reference in a new issue