Write verbose output to stderr
gianm opened this issue · 4 comments
gianm commented
This makes it possible to redirect the query results to a file while still seeing verbose output on the console, by doing:
plyql -h localhost:8082 -q 'select mystuff from mytable' -v > results
vogievetsky commented
oh wow, that is a very cool idea. I often wanted to do that myself. Is it common for tools to write non error things to stderr?
gianm commented
it's pretty common for tools where the output is machine-readable or something someone might want to save, since it makes it easier to feed that output into something else
vogievetsky commented
I love it when machines read my output 👍
gianm commented
😄