summaryrefslogtreecommitdiff
path: root/src/session.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2012-03-09 20:11:38 -0600
committerJohn Wiegley <johnw@newartisans.com>2012-03-09 20:11:38 -0600
commit022059f2a856807cad7388ea230c2ad5bcbce75d (patch)
tree5ae1e00a843e999007d8de62cfa5f45f366d5bd0 /src/session.cc
parent2df8edc71c1e805fd54c2208b2b66bdde0460c59 (diff)
downloadfork-ledger-022059f2a856807cad7388ea230c2ad5bcbce75d.tar.gz
fork-ledger-022059f2a856807cad7388ea230c2ad5bcbce75d.tar.bz2
fork-ledger-022059f2a856807cad7388ea230c2ad5bcbce75d.zip
Added --value-expr option
Diffstat (limited to 'src/session.cc')
-rw-r--r--src/session.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/session.cc b/src/session.cc
index 7c546b82..d0cd4573 100644
--- a/src/session.cc
+++ b/src/session.cc
@@ -112,6 +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();
#if defined(HAVE_BOOST_SERIALIZATION)
optional<archive_t> cache;