Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit3a8dcd9

Browse files
committed
Put pg_test_fsync --help and --version output in line with conventions
Foremost, it should go to stdout.
1 parent1453cd8 commit3a8dcd9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎contrib/pg_test_fsync/pg_test_fsync.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,12 +96,12 @@ handle_args(int argc, char *argv[])
9696
if (strcmp(argv[1],"--help")==0||strcmp(argv[1],"-h")==0||
9797
strcmp(argv[1],"-?")==0)
9898
{
99-
fprintf(stderr,"%s [-ffilename] [-oops-per-test]\n",progname);
99+
printf("Usage:%s [-fFILENAME] [-oOPS-PER-TEST]\n",progname);
100100
exit(0);
101101
}
102102
if (strcmp(argv[1],"--version")==0||strcmp(argv[1],"-V")==0)
103103
{
104-
fprintf(stderr,"%s %s\n",progname,PG_VERSION);
104+
puts("pg_test_fsync (PostgreSQL) "PG_VERSION);
105105
exit(0);
106106
}
107107
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp