From f00e6296e97e35d1898dd1a9adb148b5c6a8ef7b Mon Sep 17 00:00:00 2001 From: Ian Barwick Date: Tue, 17 Oct 2017 16:05:39 +0900 Subject: [PATCH] Move deprecated command line option Not required in repmgr4, we're keeping it around for backwards compatibility; a warning will be issued if used. --- repmgr-client.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/repmgr-client.h b/repmgr-client.h index 56ab42b3..9f09cb24 100644 --- a/repmgr-client.h +++ b/repmgr-client.h @@ -141,7 +141,6 @@ static struct option long_options[] = * * Note: --force-rewind accepted to pass to "node join" */ - {"remote-config-file", required_argument, NULL, 'C'}, {"always-promote", no_argument, NULL, OPT_ALWAYS_PROMOTE}, {"siblings-follow", no_argument, NULL, OPT_SIBLINGS_FOLLOW}, @@ -177,6 +176,8 @@ static struct option long_options[] = /* deprecated */ {"check-upstream-config", no_argument, NULL, OPT_CHECK_UPSTREAM_CONFIG}, {"no-conninfo-password", no_argument, NULL, OPT_NO_CONNINFO_PASSWORD}, + /* previously used by "standby switchover" */ + {"remote-config-file", required_argument, NULL, 'C'}, /* legacy alias for -D/--pgdata */ {"data-dir", required_argument, NULL, OPT_DATA_DIR}, /* replaced by --node-id */