diff options
author | Martin Michlmayr <tbm@cyrius.com> | 2012-03-25 11:50:16 +0100 |
---|---|---|
committer | Martin Michlmayr <tbm@cyrius.com> | 2012-03-25 11:50:16 +0100 |
commit | a47625be3571262f0c36324d6793c55645172dc1 (patch) | |
tree | 7b6fd8ad2bb3c295645d641b8697aecd54a348f4 /src/report.cc | |
parent | 3a61769098e4e90e6e55454ed0be861d69b0cd97 (diff) | |
download | fork-ledger-a47625be3571262f0c36324d6793c55645172dc1.tar.gz fork-ledger-a47625be3571262f0c36324d6793c55645172dc1.tar.bz2 fork-ledger-a47625be3571262f0c36324d6793c55645172dc1.zip |
Make pricesdb an alias for pricedb for backwards compatibility with ledger 2
ledger 2.2 introduced the pricesdb command. This was renamed to
pricedb in ledger 3. Allow pricesdb as an alternative to pricedb
to provide backwards compatibility.
Fixes bug #728
Diffstat (limited to 'src/report.cc')
-rw-r--r-- | src/report.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/report.cc b/src/report.cc index 21fc9c1b..97d2df02 100644 --- a/src/report.cc +++ b/src/report.cc @@ -1616,7 +1616,7 @@ expr_t::ptr_op_t report_t::lookup(const symbol_t::kind_t kind, else if (is_eq(p, "prices")) { return FORMATTED_COMMODITIES_REPORTER(prices_format_); } - else if (is_eq(p, "pricedb")) { + else if (is_eq(p, "pricedb") || is_eq(p, "pricesdb")) { return FORMATTED_COMMODITIES_REPORTER(pricedb_format_); } else if (is_eq(p, "pricemap")) { |