andrewrk / poop

Performance Optimizer Observation Platform
MIT License
788 stars 50 forks source link

add --color <when> flag to control color mode #23

Closed dweiller closed 1 year ago

dweiller commented 1 year ago

Sometimes you want different behaviour than the auto detection. This flag supports the same options as ripgrep.

TTY detection is also move to stdout rather than stderr as colored output is written to stdout, not stderr.

dweiller commented 1 year ago

I've also snuck in a commit improving (in my opinion) the error message when you forget the argument for --duration.