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

Commite029275

Browse files
committed
pg_upgrade: remove -h option
-h (help) is not needed; pg_upgrade already supports --help and -?,which is consistent with other tools.
1 parentfb771f9 commite029275

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

‎contrib/pg_upgrade/option.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,7 @@ parseCommandLine(int argc, char *argv[])
8282

8383
if (argc>1)
8484
{
85-
if (strcmp(argv[1],"--help")==0||strcmp(argv[1],"-h")==0||
86-
strcmp(argv[1],"-?")==0)
85+
if (strcmp(argv[1],"--help")==0||strcmp(argv[1],"-?")==0)
8786
{
8887
usage();
8988
exit(0);
@@ -244,7 +243,7 @@ Options:\n\
244243
-U, --username=NAME cluster superuser (default \"%s\")\n\
245244
-v, --verbose enable verbose internal logging\n\
246245
-V, --version display version information, then exit\n\
247-
-?, -h, --help show this help, then exit\n\
246+
-?, --help show this help, then exit\n\
248247
\n\
249248
Before running pg_upgrade you must:\n\
250249
create a new database cluster (using the new version of initdb)\n\

‎doc/src/sgml/pgupgrade.sgml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,6 @@
181181

182182
<varlistentry>
183183
<term><option>-?</option></term>
184-
<term><option>-h</option></term>
185184
<term><option>--help</option></term>
186185
<listitem><para>show help, then exit</para></listitem>
187186
</varlistentry>

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp