From 828a1e8bf98365b6266cba95caba08a48b4c745b Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Tue, 27 Oct 2009 21:34:08 -0400 Subject: Added --actual-dates, for overriding --effective This is so that if someone has --effective in their .ledgerrc, they can force the use of actual dates. --- src/global.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/global.cc') diff --git a/src/global.cc b/src/global.cc index 02c9e79a..e05b2bd8 100644 --- a/src/global.cc +++ b/src/global.cc @@ -419,7 +419,9 @@ void global_scope_t::normalize_report_options(const string& verb) report_t& rep(report()); // jww (2009-02-09): These globals are a hack, but hard to avoid. - item_t::use_effective_date = rep.HANDLED(effective); + item_t::use_effective_date = (rep.HANDLED(effective) && + ! rep.HANDLED(actual_dates)); + rep.session.commodity_pool->keep_base = rep.HANDLED(base); rep.session.commodity_pool->get_quotes = rep.session.HANDLED(download); -- cgit v1.2.3