From 6d7827af5ad53e746a11bbc5443fda1e6a908582 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Tue, 31 May 2005 04:56:08 +0000 Subject: Added --input-date-format, which affects how dates in textual and QIF files are parsed -- but not the dates inside a price database, whose format is fixed. --- config.cc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/config.cc b/config.cc index 1e9dd73c..737f51cb 100644 --- a/config.cc +++ b/config.cc @@ -1,6 +1,7 @@ #include "config.h" #include "acconf.h" #include "option.h" +#include "datetime.h" #include "quotes.h" #include "walk.h" #ifdef USE_BOOST_PYTHON @@ -688,6 +689,12 @@ OPT_BEGIN(date_format, "y:") { config.date_format = optarg; } OPT_END(date_format); +OPT_BEGIN(input_date_format, ":") { + std::strcpy(input_format, optarg); + formats[0] = input_format; + formats[1] = NULL; +} OPT_END(input_date_format); + OPT_BEGIN(balance_format, ":") { config.balance_format = optarg; } OPT_END(balance_format); -- cgit v1.2.3