diff options
author | John Wiegley <johnw@newartisans.com> | 2012-03-10 21:58:28 -0600 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2012-03-10 21:58:28 -0600 |
commit | 2a4d7e1af0ac18693b0c1ffa39daa4ad51e1492f (patch) | |
tree | ad61c2433bb40f3f8b6e7f9d67e62ecbdc2f714b /src/report.cc | |
parent | 860610fdaf94ca5904ea3e0d3d82126de74c7d80 (diff) | |
download | fork-ledger-2a4d7e1af0ac18693b0c1ffa39daa4ad51e1492f.tar.gz fork-ledger-2a4d7e1af0ac18693b0c1ffa39daa4ad51e1492f.tar.bz2 fork-ledger-2a4d7e1af0ac18693b0c1ffa39daa4ad51e1492f.zip |
Added --immediate option
Diffstat (limited to 'src/report.cc')
-rw-r--r-- | src/report.cc | 6 |
1 files changed, 6 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); |