From f7fd65b9aae4e3fa7d1f19c8d93a912f4d492b69 Mon Sep 17 00:00:00 2001 From: Alexis Hildebrandt Date: Thu, 15 Jan 2015 23:27:16 +0100 Subject: Fix -i short-option for --init-file Bugfix for #1102 Signed-off-by: Alexis Hildebrandt --- src/global.cc | 2 +- test/regress/1102.test | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 test/regress/1102.test diff --git a/src/global.cc b/src/global.cc index bf1f453c..6a30cafb 100644 --- a/src/global.cc +++ b/src/global.cc @@ -323,7 +323,7 @@ option_t * global_scope_t::lookup_option(const char * p) OPT_(help); break; case 'i': - OPT(init_file_); + OPT_(init_file_); break; case 'o': OPT(options); diff --git a/test/regress/1102.test b/test/regress/1102.test new file mode 100644 index 00000000..259b2883 --- /dev/null +++ b/test/regress/1102.test @@ -0,0 +1,8 @@ +2015/01/15 * Grocery Store + Assets:Cash ¤ -5,00 + Expenses:Food + +test -i /dev/null reg +15-Jan-15 Grocery Store Assets:Cash ¤ -5,00 ¤ -5,00 + Expenses:Food ¤ 5,00 0 +end test -- cgit v1.2.3