From ecd5097d515f53703eb5dc6096da80182c452ad9 Mon Sep 17 00:00:00 2001 From: Peter Feigl Date: Wed, 26 Feb 2014 23:50:50 +0100 Subject: Adding option --no-aliases to completely disable alias expansion --- src/session.cc | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/session.cc') 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::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_); -- cgit v1.2.3