From 2985b9d91fd3f8aede7d8f5addd991993ce7cc54 Mon Sep 17 00:00:00 2001 From: Ian Barwick Date: Wed, 10 Jun 2020 13:11:22 +0900 Subject: [PATCH] Remove vestiges of deprecated "--node" option The option was never actually set anywhere. By removing it, readline will now produce a reasoanably helpful message in the offchance it is provided, e.g.: option '--node=foo' is ambiguous; possibilities: '--node-id' '--node-name' --- repmgr-client.h | 5 ----- 1 file changed, 5 deletions(-) diff --git a/repmgr-client.h b/repmgr-client.h index 0ce23b61..03defa7d 100644 --- a/repmgr-client.h +++ b/repmgr-client.h @@ -104,10 +104,8 @@ #define OPT_DISABLE_WAL_RECEIVER 2002 #define OPT_ENABLE_WAL_RECEIVER 2003 - /* deprecated since 4.0 */ #define OPT_CHECK_UPSTREAM_CONFIG 999 -#define OPT_NODE 998 static struct option long_options[] = @@ -221,9 +219,6 @@ static struct option long_options[] = {"check-upstream-config", no_argument, NULL, OPT_CHECK_UPSTREAM_CONFIG}, /* previously used by "standby switchover" */ {"remote-config-file", required_argument, NULL, 'C'}, - /* replaced by --node-id */ - {"node", required_argument, NULL, OPT_NODE}, - {NULL, 0, NULL, 0} };