Add --help output for "repmgr node rejoin"

Addresses GitHub #329.
This commit is contained in:
Ian Barwick
2017-10-20 16:31:17 +09:00
parent c27bd2a135
commit 6852ac82c6

View File

@@ -1842,7 +1842,7 @@ do_node_rejoin(void)
* This archives any configuration files in the data directory, which may be
* overwritten by pg_rewind.
*
* Requires configuration file, optionally --config_archive_dir
* Requires configuration file, optionally --config-archive-dir
*/
static void
_do_node_archive_config(void)
@@ -2040,9 +2040,9 @@ _do_node_archive_config(void)
* Not designed to be called if the instance is running, but does
* not currently check.
*
* Requires -D/--pgdata, optionally --config_archive_dir
* Requires -D/--pgdata, optionally --config-archive-dir
*
* Removes --config_archive_dir after successful copy
* Removes --config-archive-dir after successful copy
*/
static void
@@ -2228,7 +2228,7 @@ do_node_help(void)
printf(_("NODE CHECK\n"));
puts("");
printf(_(" \"node check\" erforms some health checks on a node from a replication perspective.\n"));
printf(_(" \"node check\" performs some health checks on a node from a replication perspective.\n"));
puts("");
printf(_(" Configuration file required, runs on local node only.\n"));
puts("");
@@ -2244,4 +2244,19 @@ do_node_help(void)
puts("");
printf(_("NODE REJOIN\n"));
puts("");
printf(_(" \"node rejoin\" enables a dormant (stopped) node to be rejoined to the replication cluster.\n"));
puts("");
printf(_(" Configuration file required, runs on local node only.\n"));
puts("");
printf(_(" --dry-run check that the prerequisites are met for rejoining the node\n" \
" (including usability of \"pg_rewind\" if requested)\n"));
printf(_(" --force-rewind execute \"pg_rewind\" if necessary\n"));
printf(_(" --config-files comma-separated list of configuration files to retain\n" \
" after executing \"pg_rewind\"\n"));
printf(_(" --config-archive-dir directory to temporarily store retained configuration files\n" \
" (default: /tmp)\n"));
puts("");
}