diff options
author | Alexis Hildebrandt <afh@surryhill.net> | 2015-01-15 23:27:16 +0100 |
---|---|---|
committer | Alexis Hildebrandt <afh@surryhill.net> | 2015-01-15 23:27:16 +0100 |
commit | f7fd65b9aae4e3fa7d1f19c8d93a912f4d492b69 (patch) | |
tree | ae32f6b6fe245f1d13ffe16d1503f8c3b4be80cc | |
parent | cd5be5f43256cc0c6122414a2884bb87da775435 (diff) | |
download | fork-ledger-f7fd65b9aae4e3fa7d1f19c8d93a912f4d492b69.tar.gz fork-ledger-f7fd65b9aae4e3fa7d1f19c8d93a912f4d492b69.tar.bz2 fork-ledger-f7fd65b9aae4e3fa7d1f19c8d93a912f4d492b69.zip |
Fix -i short-option for --init-file
Bugfix for #1102
Signed-off-by: Alexis Hildebrandt <afh@surryhill.net>
-rw-r--r-- | src/global.cc | 2 | ||||
-rw-r--r-- | test/regress/1102.test | 8 |
2 files changed, 9 insertions, 1 deletions
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> * 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 |