summaryrefslogtreecommitdiff
path: root/config.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2005-02-14 08:27:53 +0000
committerJohn Wiegley <johnw@newartisans.com>2008-04-13 02:41:00 -0400
commit8fd5f4ee57f146d8486c39becced0a75ee622d31 (patch)
treeffccdf177a546262ab3aeb2bd01c8d6a220456df /config.cc
parent219492564c6a4f6027c2eff37bc0a7b1455ad969 (diff)
downloadfork-ledger-8fd5f4ee57f146d8486c39becced0a75ee622d31.tar.gz
fork-ledger-8fd5f4ee57f146d8486c39becced0a75ee622d31.tar.bz2
fork-ledger-8fd5f4ee57f146d8486c39becced0a75ee622d31.zip
Added support for "--pager PROGRAM". A likely way to define it in
your login file would be: "export LEDGER_PAGER=$PAGER".
Diffstat (limited to 'config.cc')
-rw-r--r--config.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/config.cc b/config.cc
index baf244b3..49f1c666 100644
--- a/config.cc
+++ b/config.cc
@@ -725,6 +725,10 @@ OPT_BEGIN(tail, ":") {
config.tail_entries = std::atoi(optarg);
} OPT_END(tail);
+OPT_BEGIN(pager, ":") {
+ config.pager = optarg;
+} OPT_END(pager);
+
OPT_BEGIN(empty, "E") {
config.show_empty = true;
} OPT_END(empty);