From aba5c1aa465c6ad92839fc9259a6a21d2292192e Mon Sep 17 00:00:00 2001 From: Craig Earls Date: Tue, 29 Jan 2013 10:30:18 -0700 Subject: Fixes bugs 705 and 862. Ledger now fails if init or pricedb files are specified on the command line but not found. --- src/global.h | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src/global.h') diff --git a/src/global.h b/src/global.h index dc6abd78..11459529 100644 --- a/src/global.h +++ b/src/global.h @@ -67,6 +67,7 @@ public: return _("global scope"); } + void parse_init(path init_file); void read_init(); void read_environment_settings(char * envp[]); strings_list read_command_arguments(scope_t& scope, strings_list args); @@ -156,11 +157,6 @@ See LICENSE file included with the distribution for details and disclaimer."); if (!_init_file.empty()) // _init_file is filled during handle_debug_options on(none, _init_file); - else - if (const char * home_var = std::getenv("HOME")) - on(none, (path(home_var) / ".ledgerrc").string()); - else - on(none, path("./.ledgerrc").string()); }); OPTION(global_scope_t, options); -- cgit v1.2.3