mgunyho / tere

Terminal file explorer
European Union Public License 1.2
1.67k stars 36 forks source link

--version goes to stderr #102

Closed thisismygitrepo closed 4 months ago

thisismygitrepo commented 4 months ago

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

mgunyho commented 4 months ago

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?

thisismygitrepo commented 4 months ago

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.

mgunyho commented 4 months ago

I see. Is it possible to redirect the output?

thisismygitrepo commented 4 months ago

Nice hack! I will implement that.