summaryrefslogtreecommitdiff
path: root/src/session.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-06-18 01:36:24 +0100
committerJohn Wiegley <johnw@newartisans.com>2009-06-18 01:36:24 +0100
commit47d237e18b7902f54ec36ff359ae6e6d0738c67e (patch)
tree1e43e585a33bd7610b99c44cb2f8fd826c1bd9a0 /src/session.h
parent141e60c7a722ea77e71dda36cb39e29aa6eced99 (diff)
downloadfork-ledger-47d237e18b7902f54ec36ff359ae6e6d0738c67e.tar.gz
fork-ledger-47d237e18b7902f54ec36ff359ae6e6d0738c67e.tar.bz2
fork-ledger-47d237e18b7902f54ec36ff359ae6e6d0738c67e.zip
Restored --input-date-format option
Diffstat (limited to 'src/session.h')
-rw-r--r--src/session.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/session.h b/src/session.h
index 679fe679..fc6bf4f3 100644
--- a/src/session.h
+++ b/src/session.h
@@ -143,7 +143,12 @@ public:
data_files.push_back(args[1].as_string());
});
- OPTION(session_t, input_date_format_);
+ OPTION_(session_t, input_date_format_, DO_(args) {
+ // This changes the global variable inside times.h, which affects the
+ // basic date parser
+ input_date_format = args[1].as_string();
+ });
+
OPTION(session_t, price_db_);
OPTION(session_t, strict);
};