summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-02-07 21:55:51 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-02-07 21:55:51 -0400
commit71591555fd4069075e02a25c6403f300d9ecd59d (patch)
tree18f0339b9837fd559934f1dc3f51da7ec2d2b5e3
parent591ebbf1bd7fefc76e28a86efce5339034a1dbd5 (diff)
downloadfork-ledger-71591555fd4069075e02a25c6403f300d9ecd59d.tar.gz
fork-ledger-71591555fd4069075e02a25c6403f300d9ecd59d.tar.bz2
fork-ledger-71591555fd4069075e02a25c6403f300d9ecd59d.zip
Added --leeway option (for quote downloading) into session_t.
-rw-r--r--src/session.cc3
-rw-r--r--src/session.h7
2 files changed, 10 insertions, 0 deletions
diff --git a/src/session.cc b/src/session.cc
index a1ff4892..fad51da3 100644
--- a/src/session.cc
+++ b/src/session.cc
@@ -182,6 +182,9 @@ option_t<session_t> * session_t::lookup_option(const char * p)
case 'i':
OPT(input_date_format_);
break;
+ case 'l':
+ OPT(leeway_);
+ break;
case 'p':
OPT(price_db_);
break;
diff --git a/src/session.h b/src/session.h
index ce1faa1c..231b6c73 100644
--- a/src/session.h
+++ b/src/session.h
@@ -107,6 +107,13 @@ public:
OPTION(session_t, download); // -Q
OPTION__
+ (session_t, leeway_,
+ CTOR(session_t, leeway_) { value = 24L * 3600L; }
+ DO_(args) {
+ value = args[0].to_long() * 60L;
+ });
+
+ OPTION__
(session_t, file_, // -f
std::list<path> data_files;
CTOR(session_t, file_) {}