summaryrefslogtreecommitdiff
path: root/src/session.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2008-08-13 03:55:16 -0400
committerJohn Wiegley <johnw@newartisans.com>2008-08-13 03:55:16 -0400
commit5f0b25ab9a33ee994c7db6841e60609e9b5d3a77 (patch)
tree4118a29bf8e2f6c2a5a6838cf0ce6cb383b2b13b /src/session.h
parentf34763fe071cf613de060aef67c2a2476708ef92 (diff)
downloadfork-ledger-5f0b25ab9a33ee994c7db6841e60609e9b5d3a77.tar.gz
fork-ledger-5f0b25ab9a33ee994c7db6841e60609e9b5d3a77.tar.bz2
fork-ledger-5f0b25ab9a33ee994c7db6841e60609e9b5d3a77.zip
The -f flag now works again.
Diffstat (limited to 'src/session.h')
-rw-r--r--src/session.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/session.h b/src/session.h
index 36da0a53..bd948bc8 100644
--- a/src/session.h
+++ b/src/session.h
@@ -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;
}
};