summaryrefslogtreecommitdiff
path: root/src/global.h
diff options
context:
space:
mode:
authorCraig Earls <enderw88@gmail.com>2013-01-29 10:30:18 -0700
committerCraig Earls <enderw88@gmail.com>2013-01-29 10:30:18 -0700
commitaba5c1aa465c6ad92839fc9259a6a21d2292192e (patch)
treeb9211a7302874076128850897430e0bc6b8f5509 /src/global.h
parent5d1971ee51a18f927185d20fb0a4426d8f08aa86 (diff)
downloadfork-ledger-aba5c1aa465c6ad92839fc9259a6a21d2292192e.tar.gz
fork-ledger-aba5c1aa465c6ad92839fc9259a6a21d2292192e.tar.bz2
fork-ledger-aba5c1aa465c6ad92839fc9259a6a21d2292192e.zip
Fixes bugs 705 and 862. Ledger now fails if init or pricedb files are specified on the command line but not found.
Diffstat (limited to 'src/global.h')
-rw-r--r--src/global.h6
1 files changed, 1 insertions, 5 deletions
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);