Commit 0be22457 authored by Peter Eisentraut's avatar Peter Eisentraut

pg_ctl: Add long options for -w and -W

From: Vik Fearing <vik@2ndquadrant.fr>
parent 917dc7d2
...@@ -383,6 +383,7 @@ PostgreSQL documentation ...@@ -383,6 +383,7 @@ PostgreSQL documentation
<varlistentry> <varlistentry>
<term><option>-w</option></term> <term><option>-w</option></term>
<term><option>--wait</option></term>
<listitem> <listitem>
<para> <para>
Wait for an operation to complete. This is supported for the Wait for an operation to complete. This is supported for the
...@@ -415,6 +416,7 @@ PostgreSQL documentation ...@@ -415,6 +416,7 @@ PostgreSQL documentation
<varlistentry> <varlistentry>
<term><option>-W</option></term> <term><option>-W</option></term>
<term><option>--no-wait</option></term>
<listitem> <listitem>
<para> <para>
Do not wait for an operation to complete. This is the opposite of the Do not wait for an operation to complete. This is the opposite of the
......
...@@ -1959,8 +1959,8 @@ do_help(void) ...@@ -1959,8 +1959,8 @@ do_help(void)
printf(_(" -s, --silent only print errors, no informational messages\n")); printf(_(" -s, --silent only print errors, no informational messages\n"));
printf(_(" -t, --timeout=SECS seconds to wait when using -w option\n")); printf(_(" -t, --timeout=SECS seconds to wait when using -w option\n"));
printf(_(" -V, --version output version information, then exit\n")); printf(_(" -V, --version output version information, then exit\n"));
printf(_(" -w wait until operation completes\n")); printf(_(" -w, --wait wait until operation completes\n"));
printf(_(" -W do not wait until operation completes\n")); printf(_(" -W, --no-wait do not wait until operation completes\n"));
printf(_(" -?, --help show this help, then exit\n")); printf(_(" -?, --help show this help, then exit\n"));
printf(_("(The default is to wait for shutdown, but not for start or restart.)\n\n")); printf(_("(The default is to wait for shutdown, but not for start or restart.)\n\n"));
printf(_("If the -D option is omitted, the environment variable PGDATA is used.\n")); printf(_("If the -D option is omitted, the environment variable PGDATA is used.\n"));
...@@ -2174,6 +2174,8 @@ main(int argc, char **argv) ...@@ -2174,6 +2174,8 @@ main(int argc, char **argv)
{"silent", no_argument, NULL, 's'}, {"silent", no_argument, NULL, 's'},
{"timeout", required_argument, NULL, 't'}, {"timeout", required_argument, NULL, 't'},
{"core-files", no_argument, NULL, 'c'}, {"core-files", no_argument, NULL, 'c'},
{"wait", no_argument, NULL, 'w'},
{"no-wait", no_argument, NULL, 'W'},
{NULL, 0, NULL, 0} {NULL, 0, NULL, 0}
}; };
......
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