diff options
| author | Bruce Momjian <bruce@momjian.us> | 2013-06-28 18:10:13 -0400 |
|---|---|---|
| committer | Bruce Momjian <bruce@momjian.us> | 2013-06-28 18:10:13 -0400 |
| commit | e029275cdeb39cd2178ac23e2fcc65520f7b7b9c (patch) | |
| tree | 6d748334e41cf9420baf7a0cc8a2c0f65f4009e7 /contrib/pg_upgrade/option.c | |
| parent | fb771f9086aab3018b652e1d8e5207208311bb23 (diff) | |
pg_upgrade: remove -h option
-h (help) is not needed; pg_upgrade already supports --help and -?,
which is consistent with other tools.
Diffstat (limited to 'contrib/pg_upgrade/option.c')
| -rw-r--r-- | contrib/pg_upgrade/option.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/contrib/pg_upgrade/option.c b/contrib/pg_upgrade/option.c index c71db32ed1c..dee58ee28fc 100644 --- a/contrib/pg_upgrade/option.c +++ b/contrib/pg_upgrade/option.c @@ -82,8 +82,7 @@ parseCommandLine(int argc, char *argv[]) if (argc > 1) { - if (strcmp(argv[1], "--help") == 0 || strcmp(argv[1], "-h") == 0 || - strcmp(argv[1], "-?") == 0) + if (strcmp(argv[1], "--help") == 0 || strcmp(argv[1], "-?") == 0) { usage(); exit(0); @@ -244,7 +243,7 @@ Options:\n\ -U, --username=NAME cluster superuser (default \"%s\")\n\ -v, --verbose enable verbose internal logging\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\ Before running pg_upgrade you must:\n\ create a new database cluster (using the new version of initdb)\n\ |
