summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2010-06-02 04:55:45 -0400
committerJohn Wiegley <johnw@newartisans.com>2010-06-02 04:55:45 -0400
commit79fe46eae8b2f73d58d34b8474200606d30a775c (patch)
treeab789ce537fccc3899d35a9c0cb2758c1cb2693a /src
parent75363003bd080897e9705f8edd70066a191e95aa (diff)
downloadfork-ledger-79fe46eae8b2f73d58d34b8474200606d30a775c.tar.gz
fork-ledger-79fe46eae8b2f73d58d34b8474200606d30a775c.tar.bz2
fork-ledger-79fe46eae8b2f73d58d34b8474200606d30a775c.zip
Don't use --pager or --color with --output
Diffstat (limited to 'src')
-rw-r--r--src/report.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/report.cc b/src/report.cc
index 90de9a3f..cc652f8d 100644
--- a/src/report.cc
+++ b/src/report.cc
@@ -68,6 +68,13 @@ void report_t::normalize_options(const string& verb)
}
#endif
+ if (HANDLED(output_)) {
+ if (HANDLED(color) && ! HANDLED(force_color))
+ HANDLER(color).off();
+ if (HANDLED(pager_) && ! HANDLED(force_pager))
+ HANDLER(pager_).off();
+ }
+
item_t::use_effective_date = (HANDLED(effective) &&
! HANDLED(actual_dates));