Commit e029275c authored by Bruce Momjian's avatar Bruce Momjian

pg_upgrade: remove -h option

-h (help) is not needed;  pg_upgrade already supports --help and -?,
which is consistent with other tools.
parent fb771f90
...@@ -82,8 +82,7 @@ parseCommandLine(int argc, char *argv[]) ...@@ -82,8 +82,7 @@ parseCommandLine(int argc, char *argv[])
if (argc > 1) if (argc > 1)
{ {
if (strcmp(argv[1], "--help") == 0 || strcmp(argv[1], "-h") == 0 || if (strcmp(argv[1], "--help") == 0 || strcmp(argv[1], "-?") == 0)
strcmp(argv[1], "-?") == 0)
{ {
usage(); usage();
exit(0); exit(0);
...@@ -244,7 +243,7 @@ Options:\n\ ...@@ -244,7 +243,7 @@ Options:\n\
-U, --username=NAME cluster superuser (default \"%s\")\n\ -U, --username=NAME cluster superuser (default \"%s\")\n\
-v, --verbose enable verbose internal logging\n\ -v, --verbose enable verbose internal logging\n\
-V, --version display version information, then exit\n\ -V, --version display version information, then exit\n\
-?, -h, --help show this help, then exit\n\ -?, --help show this help, then exit\n\
\n\ \n\
Before running pg_upgrade you must:\n\ Before running pg_upgrade you must:\n\
create a new database cluster (using the new version of initdb)\n\ create a new database cluster (using the new version of initdb)\n\
......
...@@ -181,7 +181,6 @@ ...@@ -181,7 +181,6 @@
<varlistentry> <varlistentry>
<term><option>-?</option></term> <term><option>-?</option></term>
<term><option>-h</option></term>
<term><option>--help</option></term> <term><option>--help</option></term>
<listitem><para>show help, then exit</para></listitem> <listitem><para>show help, then exit</para></listitem>
</varlistentry> </varlistentry>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment