]> git.cworth.org Git - apitrace/commit
tracedump: Add tri-state --color option (auto, always, or never)
authorCarl Worth <cworth@cworth.org>
Thu, 20 Oct 2011 22:22:09 +0000 (15:22 -0700)
committerJosé Fonseca <jose.r.fonseca@gmail.com>
Mon, 24 Oct 2011 12:28:13 +0000 (13:28 +0100)
commite525e6f8733c35f5b9d7b6da1ce1e56a7d70f5ba
tree906ab9366368d08ad8ec8c408458ced932cd1836
parent1d6bed02a167d46e2a61d07d97ed965a94fa07b4
tracedump: Add tri-state --color option (auto, always, or never)

This follows a pattern similar to that provided by other tools, (such
as grep). The default auto mode colorizes if stdout is a tty. The always
and never modes explicit enable or disable colorizing.

The old --no-color and --no-colour options are deprecated, (no longer
documented but still supported to avoid any regressions of scripts).

Signed-off-by: José Fonseca <jose.r.fonseca@gmail.com>
scripts/tracediff.sh
tracedump.cpp