diff options
author | John Wiegley <johnw@newartisans.com> | 2005-01-14 23:44:33 +0000 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2008-04-13 02:40:50 -0400 |
commit | e6c4532c56a78e9b34bbb8f140ba7250156a8a14 (patch) | |
tree | 2e48c37a84661bca83b8462262769e391bd2e80a /main.cc | |
parent | 79f9a1efb5ef04703e7491a80583aa9dcc293ff1 (diff) | |
download | fork-ledger-e6c4532c56a78e9b34bbb8f140ba7250156a8a14.tar.gz fork-ledger-e6c4532c56a78e9b34bbb8f140ba7250156a8a14.tar.bz2 fork-ledger-e6c4532c56a78e9b34bbb8f140ba7250156a8a14.zip |
(parse_and_report): If cache_file is "<none>", blank it out. This
steps around the logic that sets the default name.
Diffstat (limited to 'main.cc')
-rw-r--r-- | main.cc | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -213,11 +213,14 @@ int parse_and_report(int argc, char * argv[], char * envp[]) if (config.init_file.empty()) config.init_file = home + "/.ledgerrc"; - if (config.cache_file.empty()) - config.cache_file = home + "/.ledger-cache"; if (config.price_db.empty()) config.price_db = home + "/.pricedb"; + if (config.cache_file.empty()) + config.cache_file = home + "/.ledger-cache"; + else if (config.cache_file == "<none>") + config.cache_file = ""; + if (config.data_file == config.cache_file) config.use_cache = false; DEBUG_PRINT("ledger.config.cache", "2. use_cache = " << config.use_cache); |