From 440124eacc9f7fde993e87968ca9e65ffa309f11 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Wed, 24 Jun 2009 02:44:07 +0100 Subject: Restored --download, although not done yet The problem at this point is that it's recording prices in the price database multiple times; it should only need to download a price for each commodity once per day. --- src/session.cc | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'src/session.cc') diff --git a/src/session.cc b/src/session.cc index 6b891e1b..d5cc3b38 100644 --- a/src/session.cc +++ b/src/session.cc @@ -219,6 +219,12 @@ void session_t::clean_accounts() option_t * session_t::lookup_option(const char * p) { switch (*p) { + case 'Q': + OPT_CH(download); // -Q + break; + case 'Z': + OPT_CH(price_exp_); + break; case 'a': OPT_(account_); // -a break; @@ -232,17 +238,15 @@ option_t * session_t::lookup_option(const char * p) OPT(input_date_format_); break; case 'l': - OPT(leeway_); + OPT_ALT(price_exp_, leeway_); break; case 'p': OPT(price_db_); + else OPT(price_exp_); break; case 's': OPT(strict); break; - case 'Q': - OPT_CH(download); // -Q - break; } return NULL; } -- cgit v1.2.3