3 ms·
Spot on. A good pattern is to autodetect what to do by default and yet allow forcing on/off (e.g. --color and --no-color)
by eeZah7Ux 8y ago
Spot on. A good pattern is to autodetect what to do by default and yet allow forcing on/off (e.g. --color and --no-color)
- kchr 8y agoAgreed. It could be as simple as checking if there is a tty and whether or not we're inside a pipe.