diff options
author | John Wiegley <johnw@newartisans.com> | 2014-02-26 16:06:52 -0600 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2014-02-26 16:06:52 -0600 |
commit | eddd03ed096fc97a9b4f252ebbef0dae84410240 (patch) | |
tree | 0e8ec4c444700fd996eefead32455ec7086bff08 /src/session.cc | |
parent | bc08eed3cb1bdb4f67d1b77273f3254d0cf13be2 (diff) | |
parent | 75b0a5d8ff22abeac8c4f502154159f998ffbe99 (diff) | |
download | fork-ledger-eddd03ed096fc97a9b4f252ebbef0dae84410240.tar.gz fork-ledger-eddd03ed096fc97a9b4f252ebbef0dae84410240.tar.bz2 fork-ledger-eddd03ed096fc97a9b4f252ebbef0dae84410240.zip |
Merge pull request #247 from ecraven/master
Adding support for recursive aliases.
Diffstat (limited to 'src/session.cc')
-rw-r--r-- | src/session.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/session.cc b/src/session.cc index dbd49a0e..99467a43 100644 --- a/src/session.cc +++ b/src/session.cc @@ -113,6 +113,9 @@ std::size_t session_t::read_data(const string& master_account) if (HANDLED(day_break)) journal->day_break = true; + if (HANDLED(recursive_aliases)) + journal->recursive_aliases = true; + if (HANDLED(permissive)) journal->checking_style = journal_t::CHECK_PERMISSIVE; else if (HANDLED(pedantic)) @@ -350,6 +353,9 @@ option_t<session_t> * session_t::lookup_option(const char * p) else OPT(pedantic); else OPT(permissive); break; + case 'r': + OPT(recursive_aliases); + break; case 's': OPT(strict); break; |