diff options
author | John Wiegley <johnw@newartisans.com> | 2012-03-09 20:16:44 -0600 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2012-03-09 20:16:44 -0600 |
commit | 5e0efb5e8b117fa7c41d7377b506f386e3bbfefe (patch) | |
tree | 2b46b764fe9f857a695dc38a298e4f4ceb9eedef | |
parent | 022059f2a856807cad7388ea230c2ad5bcbce75d (diff) | |
download | fork-ledger-5e0efb5e8b117fa7c41d7377b506f386e3bbfefe.tar.gz fork-ledger-5e0efb5e8b117fa7c41d7377b506f386e3bbfefe.tar.bz2 fork-ledger-5e0efb5e8b117fa7c41d7377b506f386e3bbfefe.zip |
Fixed options processing of --value-expr
-rw-r--r-- | src/session.cc | 7 | ||||
-rw-r--r-- | src/session.h | 4 |
2 files changed, 7 insertions, 4 deletions
diff --git a/src/session.cc b/src/session.cc index d0cd4573..76061de7 100644 --- a/src/session.cc +++ b/src/session.cc @@ -112,8 +112,8 @@ std::size_t session_t::read_data(const string& master_account) journal->checking_style = journal_t::CHECK_ERROR; else if (HANDLED(strict)) journal->checking_style = journal_t::CHECK_WARNING; - else if (HANDLED(value_expr)) - journal->value_expr = HANDLER(value_expr).str(); + else if (HANDLED(value_expr_)) + journal->value_expr = HANDLER(value_expr_).str(); #if defined(HAVE_BOOST_SERIALIZATION) optional<archive_t> cache; @@ -345,6 +345,9 @@ option_t<session_t> * session_t::lookup_option(const char * p) case 's': OPT(strict); break; + case 'v': + OPT(value_expr_); + break; } return NULL; } diff --git a/src/session.h b/src/session.h index f2b1dbef..962664ef 100644 --- a/src/session.h +++ b/src/session.h @@ -108,7 +108,7 @@ public: HANDLER(price_db_).report(out); HANDLER(price_exp_).report(out); HANDLER(strict).report(out); - HANDLER(value_expr).report(out); + HANDLER(value_expr_).report(out); } option_t<session_t> * lookup_option(const char * p); @@ -156,7 +156,7 @@ public: OPTION(session_t, permissive); OPTION(session_t, price_db_); OPTION(session_t, strict); - OPTION(session_t, value_expr); + OPTION(session_t, value_expr_); }; /** |