Put pg_test_fsync --help and --version output in line with conventions

Foremost, it should go to stdout.
This commit is contained in:
Peter Eisentraut 2011-05-10 21:34:26 +03:00
parent 1453cd8f82
commit 3a8dcd9a1f
1 changed files with 2 additions and 2 deletions

View File

@ -96,12 +96,12 @@ handle_args(int argc, char *argv[])
if (strcmp(argv[1], "--help") == 0 || strcmp(argv[1], "-h") == 0 ||
strcmp(argv[1], "-?") == 0)
{
fprintf(stderr, "%s [-f filename] [-o ops-per-test]\n", progname);
printf("Usage: %s [-f FILENAME] [-o OPS-PER-TEST]\n", progname);
exit(0);
}
if (strcmp(argv[1], "--version") == 0 || strcmp(argv[1], "-V") == 0)
{
fprintf(stderr, "%s %s\n", progname, PG_VERSION);
puts("pg_test_fsync (PostgreSQL) " PG_VERSION);
exit(0);
}
}