From a47625be3571262f0c36324d6793c55645172dc1 Mon Sep 17 00:00:00 2001 From: Martin Michlmayr Date: Sun, 25 Mar 2012 11:50:16 +0100 Subject: 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 --- src/report.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/report.cc') 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")) { -- cgit v1.2.3