MINOR: cli: add missing agent commands for set server
we previously forgot to add `agent-*` commands.
Take this opportunity to rewrite the help string in a simpler way for
readability (mainly removing simple quotes)
Signed-off-by: William Dauchy <wdauchy@gmail.com>
diff --git a/src/server.c b/src/server.c
index 19bf529..7a058e3 100644
--- a/src/server.c
+++ b/src/server.c
@@ -4619,9 +4619,10 @@
#endif
} else {
cli_err(appctx,
- "'set server <srv>' only supports 'agent', 'health', "
- "'state', 'weight', 'addr', 'fqdn', 'check-addr', "
- "'check-port' and 'ssl'.\n");
+ "usage: set server <backend>/<server> "
+ "addr | agent | agent-addr | agent-port | agent-send | "
+ "check-addr | check-port | fqdn | health | ssl | "
+ "state | weight\n");
}
out_unlock:
HA_SPIN_UNLOCK(SERVER_LOCK, &sv->lock);