diff options
author | John Wiegley <johnw@newartisans.com> | 2009-06-22 00:27:00 +0100 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-06-22 00:27:00 +0100 |
commit | 407d057f4df527b5b1481634ba852155f103d8cf (patch) | |
tree | b558595300d91c83ef7e6a36711fd9a0d1480e62 | |
parent | 7d5f02f5cce2b3f7b5d4089f10de4466c9762a9c (diff) | |
download | fork-ledger-407d057f4df527b5b1481634ba852155f103d8cf.tar.gz fork-ledger-407d057f4df527b5b1481634ba852155f103d8cf.tar.bz2 fork-ledger-407d057f4df527b5b1481634ba852155f103d8cf.zip |
Added a --no-color option, to disable --color
-rw-r--r-- | src/report.cc | 1 | ||||
-rw-r--r-- | src/report.h | 4 |
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__ |