diff options
author | John Wiegley <johnw@newartisans.com> | 2005-05-31 04:56:08 +0000 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2008-04-13 02:41:10 -0400 |
commit | 6d7827af5ad53e746a11bbc5443fda1e6a908582 (patch) | |
tree | e916f4263fee4f52e0cdef7a4c19731baa70f518 | |
parent | cc38fc235fc848e9cdeec81ee467bddaaa180e89 (diff) | |
download | fork-ledger-6d7827af5ad53e746a11bbc5443fda1e6a908582.tar.gz fork-ledger-6d7827af5ad53e746a11bbc5443fda1e6a908582.tar.bz2 fork-ledger-6d7827af5ad53e746a11bbc5443fda1e6a908582.zip |
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.
-rw-r--r-- | config.cc | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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); |