The -f flag now works again.
This commit is contained in:
parent
f34763fe07
commit
5f0b25ab9a
3 changed files with 9 additions and 4 deletions
|
|
@ -201,7 +201,7 @@ namespace ledger {
|
|||
|
||||
if (! session.cache_file)
|
||||
session.use_cache = false;
|
||||
else
|
||||
else if (session.use_cache)
|
||||
session.use_cache = ! session.data_file.empty() && session.price_db;
|
||||
|
||||
DEBUG("ledger.session.cache", "1. use_cache = " << session.use_cache);
|
||||
|
|
|
|||
|
|
@ -100,7 +100,7 @@ session_t::session_t()
|
|||
pricing_leeway(24 * 3600),
|
||||
|
||||
download_quotes(false),
|
||||
use_cache(false),
|
||||
use_cache(true),
|
||||
cache_dirty(false),
|
||||
|
||||
now(now),
|
||||
|
|
|
|||
|
|
@ -221,8 +221,13 @@ See LICENSE file included with the distribution for details and disclaimer.\n";
|
|||
|
||||
value_t option_file_(call_scope_t& args) {
|
||||
assert(args.size() == 1);
|
||||
data_file = args[0].as_string();
|
||||
return NULL_VALUE;
|
||||
// jww (2008-08-13): Add support for multiple files, but not between
|
||||
// -f and LEDGER_FILE
|
||||
if (data_file.empty()) {
|
||||
data_file = args[0].as_string();
|
||||
use_cache = false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue