diff options
author | John Wiegley <johnw@newartisans.com> | 2009-02-09 17:27:54 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-02-09 17:27:54 -0400 |
commit | 6ca01af594148e12cd8e1da87302644a0bbae3a0 (patch) | |
tree | bb83af15a352e3125053a3d5c0761f8e395ed2c3 /src/global.cc | |
parent | cad86ed87f3548aaf9d35890f2b686c2bf064368 (diff) | |
download | fork-ledger-6ca01af594148e12cd8e1da87302644a0bbae3a0.tar.gz fork-ledger-6ca01af594148e12cd8e1da87302644a0bbae3a0.tar.bz2 fork-ledger-6ca01af594148e12cd8e1da87302644a0bbae3a0.zip |
Fixed the use of --effective and --date-format (-y).
Diffstat (limited to 'src/global.cc')
-rw-r--r-- | src/global.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/global.cc b/src/global.cc index 4d2f97fc..f84eef65 100644 --- a/src/global.cc +++ b/src/global.cc @@ -377,6 +377,14 @@ void global_scope_t::normalize_report_options(const string& verb) report_t& rep(report()); + // jww (2009-02-09): These global are a hack, but hard to avoid + item_t::use_effective_date = rep.HANDLED(effective); + + if (rep.HANDLED(date_format_)) { + output_datetime_format = rep.HANDLER(date_format_).str() + " %H:%M:%S"; + output_date_format = rep.HANDLER(date_format_).str(); + } + // jww (2008-08-14): This code really needs to be rationalized away // for 3.0. |