Print usage information to stdout instead of stderr

It doesn't make much sense to print usage into to stderr. What's more is
that it prevents users from easily piping the output to other
programs(i.e. grep)
This commit is contained in:
Nikos Tsipinakis 2017-02-20 17:28:54 +02:00
parent 92e83a939f
commit 2d53c898db

View File

@ -391,8 +391,7 @@ void usage(int exit_status)
{
fputs("usage:\n", stderr);
char *us = cmdline_create_usage();
fputs(us, stderr);
fputs("\n", stderr);
puts(us);
exit(exit_status);
}