diff options
author | John Wiegley <johnw@newartisans.com> | 2004-09-20 06:18:24 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2004-09-20 06:18:24 -0400 |
commit | e59ba748140d9abb5bfab124b5e9037cdae2ec4b (patch) | |
tree | 25d103df732ad94a22cb3e0ed4fe98115b0bddb9 | |
parent | 2010be07f07a1fab0d92a4f7a2ab522c411bec05 (diff) | |
download | fork-ledger-e59ba748140d9abb5bfab124b5e9037cdae2ec4b.tar.gz fork-ledger-e59ba748140d9abb5bfab124b5e9037cdae2ec4b.tar.bz2 fork-ledger-e59ba748140d9abb5bfab124b5e9037cdae2ec4b.zip |
if --file and the --cache refer to the same file, don't use caching
-rw-r--r-- | main.cc | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -188,6 +188,9 @@ int parse_and_report(int argc, char * argv[], char * envp[]) process_option(config_options, "price-exp", p); #endif + if (config.data_file == config.cache_file) + config.use_cache = false; + TIMER_STOP(process_opts); // Read the command word, canonicalize it to its one letter form, |