summaryrefslogtreecommitdiff
path: root/src/global.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-06-28 16:11:45 +0100
committerJohn Wiegley <johnw@newartisans.com>2009-06-28 16:11:45 +0100
commit2cec78718219516b5798b3f39790f9220578a64f (patch)
tree4d6e4a80f8522eea41c4d482ac51b0e5ceec9901 /src/global.cc
parent0283f444c5b8d4116ac20c458ef91a29b986688e (diff)
downloadfork-ledger-2cec78718219516b5798b3f39790f9220578a64f.tar.gz
fork-ledger-2cec78718219516b5798b3f39790f9220578a64f.tar.bz2
fork-ledger-2cec78718219516b5798b3f39790f9220578a64f.zip
Disable use of ~/.pricedb when --args-only is present
Diffstat (limited to 'src/global.cc')
-rw-r--r--src/global.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/global.cc b/src/global.cc
index 1c94cfcb..40057d48 100644
--- a/src/global.cc
+++ b/src/global.cc
@@ -82,6 +82,8 @@ global_scope_t::global_scope_t(char ** envp)
read_environment_settings(envp);
session().set_flush_on_next_data_file(true);
read_init();
+ } else {
+ session().HANDLER(price_db_).off();
}
}