mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-25 08:06:29 +00:00
Standardize on --host option
This commit is contained in:
@@ -28,7 +28,7 @@
|
|||||||
</para>
|
</para>
|
||||||
<para>
|
<para>
|
||||||
In most cases it's only necessary to provide the primary's hostname with
|
In most cases it's only necessary to provide the primary's hostname with
|
||||||
the <option>-h</option>/<option>--hostname</option> option; &repmgr; will
|
the <option>-h</option>/<option>--host</option> option; &repmgr; will
|
||||||
automatically use the <varname>user</varname> and <varname>dbname</varname>
|
automatically use the <varname>user</varname> and <varname>dbname</varname>
|
||||||
values defined in the <varname>conninfo</varname> string defined in the
|
values defined in the <varname>conninfo</varname> string defined in the
|
||||||
witness node's <filename>repmgr.conf</filename>, unless these are explicitly
|
witness node's <filename>repmgr.conf</filename>, unless these are explicitly
|
||||||
|
|||||||
@@ -490,9 +490,9 @@ void do_witness_help(void)
|
|||||||
printf(_(" \"witness register\" registers a witness node.\n"));
|
printf(_(" \"witness register\" registers a witness node.\n"));
|
||||||
puts("");
|
puts("");
|
||||||
printf(_(" Requires provision of connection information for the primary node,\n"));
|
printf(_(" Requires provision of connection information for the primary node,\n"));
|
||||||
printf(_(" typically usually just the hostname.\n"));
|
printf(_(" typically usually just the host name.\n"));
|
||||||
puts("");
|
puts("");
|
||||||
printf(_(" -h/--hostname hostname of the primary node\n"));
|
printf(_(" -h/--host host name of the primary node\n"));
|
||||||
printf(_(" --dry-run check prerequisites but don't make any changes\n"));
|
printf(_(" --dry-run check prerequisites but don't make any changes\n"));
|
||||||
printf(_(" -F, --force overwrite an existing node record\n"));
|
printf(_(" -F, --force overwrite an existing node record\n"));
|
||||||
puts("");
|
puts("");
|
||||||
|
|||||||
@@ -1399,7 +1399,7 @@ check_cli_parameters(const int action)
|
|||||||
if (!runtime_options.host_param_provided)
|
if (!runtime_options.host_param_provided)
|
||||||
{
|
{
|
||||||
item_list_append_format(&cli_errors,
|
item_list_append_format(&cli_errors,
|
||||||
_("host name for the source node must be provided with -h/--hostname when executing %s"),
|
_("host name for the source node must be provided with -h/--host when executing %s"),
|
||||||
action_name(action));
|
action_name(action));
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1456,7 +1456,7 @@ check_cli_parameters(const int action)
|
|||||||
if (!runtime_options.host_param_provided)
|
if (!runtime_options.host_param_provided)
|
||||||
{
|
{
|
||||||
item_list_append_format(&cli_errors,
|
item_list_append_format(&cli_errors,
|
||||||
_("host name for the source node must be provided with -h/--hostname when executing %s"),
|
_("host name for the source node must be provided with -h/--host when executing %s"),
|
||||||
action_name(action));
|
action_name(action));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user