2 ms·
The thing is, you might want to pipe the output to something else instead of saving it to a file. If you check that you're outputting to a terminal, then the te
by wtetzner 12y ago
The thing is, you might want to pipe the output to something else instead of saving it to a file. If you check that you're outputting to a terminal, then the terminal behavior is different than the pipe behavior, which might be confusing.
Maybe if it's a terminal print a warning with a simple explanation, or a Y/N prompt?