summaryrefslogtreecommitdiff
path: root/src/session.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2012-03-17 05:27:43 -0500
committerJohn Wiegley <johnw@newartisans.com>2012-03-17 05:27:43 -0500
commit22c1b867f03e4a495f9e47c899d1fdfcaec3a659 (patch)
tree851bf7423959048cf8f26d19bd7880450a97495e /src/session.cc
parent018a2a8e7b1ad490e3ff69f3014aeb51abb80929 (diff)
downloadfork-ledger-22c1b867f03e4a495f9e47c899d1fdfcaec3a659.tar.gz
fork-ledger-22c1b867f03e4a495f9e47c899d1fdfcaec3a659.tar.bz2
fork-ledger-22c1b867f03e4a495f9e47c899d1fdfcaec3a659.zip
Added option --day-break
Diffstat (limited to 'src/session.cc')
-rw-r--r--src/session.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/session.cc b/src/session.cc
index 76061de7..5c9e4fd4 100644
--- a/src/session.cc
+++ b/src/session.cc
@@ -105,6 +105,8 @@ std::size_t session_t::read_data(const string& master_account)
journal->force_checking = true;
if (HANDLED(check_payees))
journal->check_payees = true;
+ if (HANDLED(day_break))
+ journal->day_break = true;
if (HANDLED(permissive))
journal->checking_style = journal_t::CHECK_PERMISSIVE;
@@ -320,6 +322,7 @@ option_t<session_t> * session_t::lookup_option(const char * p)
case 'd':
OPT(download); // -Q
else OPT(decimal_comma);
+ else OPT(day_break);
break;
case 'e':
OPT(explicit);