summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-02-01 01:47:21 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-02-01 01:47:21 -0400
commite4b1359959e5830bac0723cc669e70b9b9e985f4 (patch)
tree1502eaa88d4ae1bd278de3f691bf87945b5d5cb8 /src
parent559a76ac2bb744fcef92fdc602bce7ba21cd52be (diff)
downloadledger-e4b1359959e5830bac0723cc669e70b9b9e985f4.tar.gz
ledger-e4b1359959e5830bac0723cc669e70b9b9e985f4.tar.bz2
ledger-e4b1359959e5830bac0723cc669e70b9b9e985f4.zip
Restored the --pager option.
Diffstat (limited to 'src')
-rw-r--r--src/report.cc2
-rw-r--r--src/report.h2
2 files changed, 3 insertions, 1 deletions
diff --git a/src/report.cc b/src/report.cc
index e811666a..4405b882 100644
--- a/src/report.cc
+++ b/src/report.cc
@@ -772,6 +772,8 @@ expr_t::ptr_op_t report_t::lookup(const string& name)
return MAKE_FUNCTOR(report_t::option_price);
else if (std::strcmp(p, "price_db_") == 0)
return MAKE_FUNCTOR(report_t::option_price_db_);
+ else if (std::strcmp(p, "pager_") == 0)
+ return MAKE_FUNCTOR(report_t::option_pager_);
break;
case 'q':
diff --git a/src/report.h b/src/report.h
index d0a29f75..244e9465 100644
--- a/src/report.h
+++ b/src/report.h
@@ -445,7 +445,7 @@ public:
return true;
}
- value_t option_pager(call_scope_t& args) { // :
+ value_t option_pager_(call_scope_t& args) { // :
pager_path = args[0].as_string();
return true;
}