Make jq --version print to stdout, not stderr

This commit is contained in:
Stephen Dolan committed 2013-06-03 23:22:59 +01:00
1 parent 2c4ccd122e
commit 5dac485458
1 file changed
+1 -1
+1 -1
View File
@@ -244,7 +244,7 @@ int main(int argc, char* argv[]) {
} else if (isoption(argv[i], 'h', "help")) {
usage();
} else if (isoption(argv[i], 'V', "version")) {
fprintf(stderr, "jq-%s\n", JQ_VERSION);
printf("jq-%s\n", JQ_VERSION);
return 0;
} else {
fprintf(stderr, "%s: Unknown option %s\n", progname, argv[i]);