summaryrefslogtreecommitdiff
path: root/src/main.cc
diff options
context:
space:
mode:
authorCraig Earls <enderw88@gmail.com>2012-10-25 10:39:48 -0700
committerCraig Earls <enderw88@gmail.com>2012-10-25 10:39:48 -0700
commit4b261f99bc56853b3468a8a1bb5b4af39ed67af5 (patch)
tree87b067d8aa94f651eda9b584e6762dc3ae2c3fe0 /src/main.cc
parent41cc9a7f3cb9cd4b1857b0209c59ef66929edf03 (diff)
downloadfork-ledger-4b261f99bc56853b3468a8a1bb5b4af39ed67af5.tar.gz
fork-ledger-4b261f99bc56853b3468a8a1bb5b4af39ed67af5.tar.bz2
fork-ledger-4b261f99bc56853b3468a8a1bb5b4af39ed67af5.zip
Fixes Bug 695, ledger ignores --init-file
Handle --init-file as a special command option like the debug options. That wway we can have the argument captured before teh global scope is created.
Diffstat (limited to 'src/main.cc')
-rw-r--r--src/main.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main.cc b/src/main.cc
index a1ac0339..124efb5e 100644
--- a/src/main.cc
+++ b/src/main.cc
@@ -59,6 +59,7 @@ int main(int argc, char * argv[], char * envp[])
// --debug CATEGORY ; turns on debug logging
// --trace LEVEL ; turns on trace logging
// --memory ; turns on memory usage tracing
+ // --init-file ; directs ledger to use a different init file
handle_debug_options(argc, argv);
#if VERIFY_ON
IF_VERIFY() initialize_memory_tracing();