diff options
author | John Wiegley <johnw@newartisans.com> | 2016-10-27 13:10:35 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-10-27 13:10:35 -0700 |
commit | f0e6140c8bc7565d0abe907dc7e08b7055b4a93b (patch) | |
tree | 8cf7ab81456fa989f2883d8106a9a9086354064e /src | |
parent | 310370db041349c94e6984cc283be18f5a25a6ca (diff) | |
parent | 5b70d4e5e4ec55ac977be4264f75cb5c3b764327 (diff) | |
download | fork-ledger-f0e6140c8bc7565d0abe907dc7e08b7055b4a93b.tar.gz fork-ledger-f0e6140c8bc7565d0abe907dc7e08b7055b4a93b.tar.bz2 fork-ledger-f0e6140c8bc7565d0abe907dc7e08b7055b4a93b.zip |
Merge pull request #395 from thdox/force-color
--force-color does not require anymore --color.
Diffstat (limited to 'src')
-rw-r--r-- | src/report.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/report.cc b/src/report.cc index 78ccac51..b2162034 100644 --- a/src/report.cc +++ b/src/report.cc @@ -64,6 +64,9 @@ void report_t::normalize_options(const string& verb) if (HANDLED(color) && ! isatty(STDOUT_FILENO)) HANDLER(color).off(); } + else { + HANDLER(color).on("?normalize"); + } if (! HANDLED(force_pager)) { if (HANDLED(pager_) && ! isatty(STDOUT_FILENO)) HANDLER(pager_).off(); |