Issue 12273 - Added -color[=on|off] flag

Defaults to colored output if stderr is a TTY and TERM is not dumb.