From 5e0efb5e8b117fa7c41d7377b506f386e3bbfefe Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Fri, 9 Mar 2012 20:16:44 -0600 Subject: Fixed options processing of --value-expr --- src/session.cc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/session.cc') 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 cache; @@ -345,6 +345,9 @@ option_t * session_t::lookup_option(const char * p) case 's': OPT(strict); break; + case 'v': + OPT(value_expr_); + break; } return NULL; } -- cgit v1.2.3