--version goes to stderr
Closed this issue · 4 comments
A weird behaviour not consisting with other cli tools is when I go with tere --version
, the output goes to stderr instead of stdout. Could you please fix this.
Thanks
Hi,
I understand that that is unconventional, but it's very much on purpose - trying to figure out from the stdout whether it's a folder name where we want to cd to or a version number (or the output of --help
) would add quite a bit of complexity to the rc file configuration.
Do you have a specific case where --version
going to stderr is causing a problem?
Just some automation tool that I made, it registers cli tools versions and do Total Virus scanning and put results in records, tere
is failing while other cli tools cause no issue.
I see. Is it possible to redirect the output?
Nice hack!
I will implement that.