Skip to content

Commit e029275

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 parent fb771f9 commit e029275

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy