diff options
author | Peter Feigl <craven@gmx.net> | 2014-02-26 23:50:50 +0100 |
---|---|---|
committer | Peter Feigl <craven@gmx.net> | 2014-02-26 23:50:50 +0100 |
commit | ecd5097d515f53703eb5dc6096da80182c452ad9 (patch) | |
tree | f5d912e3e87c6e0e72bf6cd8bea758a0ae42ed03 /src/session.cc | |
parent | ee36a33a19c57cd57c1be7076530d65ae1ac68b0 (diff) | |
download | fork-ledger-ecd5097d515f53703eb5dc6096da80182c452ad9.tar.gz fork-ledger-ecd5097d515f53703eb5dc6096da80182c452ad9.tar.bz2 fork-ledger-ecd5097d515f53703eb5dc6096da80182c452ad9.zip |
Adding option --no-aliases to completely disable alias expansion
Diffstat (limited to 'src/session.cc')
-rw-r--r-- | src/session.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/session.cc b/src/session.cc index 99467a43..b386607a 100644 --- a/src/session.cc +++ b/src/session.cc @@ -115,6 +115,8 @@ std::size_t session_t::read_data(const string& master_account) if (HANDLED(recursive_aliases)) journal->recursive_aliases = true; + if (HANDLED(no_aliases)) + journal->no_aliases = true; if (HANDLED(permissive)) journal->checking_style = journal_t::CHECK_PERMISSIVE; @@ -347,6 +349,9 @@ option_t<session_t> * session_t::lookup_option(const char * p) case 'm': OPT(master_account_); break; + case 'n': + OPT(no_aliases); + break; case 'p': OPT(price_db_); else OPT(price_exp_); |