summaryrefslogtreecommitdiff
path: root/src/session.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/session.cc')
-rw-r--r--src/session.cc12
1 files changed, 8 insertions, 4 deletions
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> * 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> * 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;
}