mirror of
https://github.com/zeek/zeek.git
synced 2025-10-04 15:48:19 +00:00
print version string to stdout on --version
When running a *nix command from the prompt, and output is expected, that output should be sent to stdout, not stderr. The --version option is such a case. The outputted version string is not an indication of error or a diagnostic output; it is the expected output, thus should follow standard conventions and be output to stdout..
This commit is contained in:
parent
d505670f59
commit
05746ab7fc
1 changed files with 1 additions and 1 deletions
|
@ -595,7 +595,7 @@ int main(int argc, char** argv)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'v':
|
case 'v':
|
||||||
fprintf(stderr, "%s version %s\n", prog, bro_version());
|
fprintf(stdout, "%s version %s\n", prog, bro_version());
|
||||||
exit(0);
|
exit(0);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue