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.
This commit is contained in:
parent
cc38fc235f
commit
6d7827af5a
1 changed files with 7 additions and 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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue