summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/report.cc1
-rw-r--r--src/report.h4
2 files changed, 5 insertions, 0 deletions
diff --git a/src/report.cc b/src/report.cc
index 04cbed34..5d1d0da8 100644
--- a/src/report.cc
+++ b/src/report.cc
@@ -565,6 +565,7 @@ option_t<report_t> * report_t::lookup_option(const char * p)
break;
case 'n':
OPT_CH(collapse);
+ else OPT(no_color);
else OPT(no_total);
break;
case 'o':
diff --git a/src/report.h b/src/report.h
index e0150d8f..63a1a045 100644
--- a/src/report.h
+++ b/src/report.h
@@ -561,6 +561,10 @@ public:
parent->HANDLER(period_).on(string("--monthly"), "monthly");
});
+ OPTION_(report_t, no_color, DO() {
+ parent->HANDLER(color).off();
+ });
+
OPTION(report_t, no_total);
OPTION__