diff --git a/repmgr-client.c b/repmgr-client.c index 0e9ac9c1..cab21f8e 100644 --- a/repmgr-client.c +++ b/repmgr-client.c @@ -1889,6 +1889,22 @@ check_cli_parameters(const int action) "only one of --csv, --nagios and --optformat can be used"); } } + + /* --compact */ + + if (runtime_options.compact == TRUE) + { + switch (action) + { + case CLUSTER_SHOW: + case DAEMON_STATUS: + break; + default: + item_list_append_format(&cli_warnings, + _("--compact is not effective when executing %s"), + action_name(action)); + } + } }