From 22647dea4df1fae4108abeafc68a9df4919a50cd Mon Sep 17 00:00:00 2001 From: zhurunhua Date: Thu, 13 May 2021 14:47:56 +0800 Subject: [PATCH] update the option's description of updateAccessConfig command --- .../tools/command/acl/DeleteAccessConfigSubCommand.java | 4 ++-- .../tools/command/acl/UpdateAccessConfigSubCommand.java | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/src/main/java/org/apache/rocketmq/tools/command/acl/DeleteAccessConfigSubCommand.java b/tools/src/main/java/org/apache/rocketmq/tools/command/acl/DeleteAccessConfigSubCommand.java index 0a1a4b23..d82453dc 100644 --- a/tools/src/main/java/org/apache/rocketmq/tools/command/acl/DeleteAccessConfigSubCommand.java +++ b/tools/src/main/java/org/apache/rocketmq/tools/command/acl/DeleteAccessConfigSubCommand.java @@ -76,7 +76,7 @@ public class DeleteAccessConfigSubCommand implements SubCommand { defaultMQAdminExt.start(); defaultMQAdminExt.deletePlainAccessConfig(addr, accessKey); - System.out.printf("delete plain access config account to %s success.%n", addr); + System.out.printf("delete plain access config account from %s success.%n", addr); System.out.printf("account's accesskey is:%s", accessKey); return; @@ -89,7 +89,7 @@ public class DeleteAccessConfigSubCommand implements SubCommand { CommandUtil.fetchMasterAddrByClusterName(defaultMQAdminExt, clusterName); for (String addr : masterSet) { defaultMQAdminExt.deletePlainAccessConfig(addr, accessKey); - System.out.printf("delete plain access config account to %s success.%n", addr); + System.out.printf("delete plain access config account from %s success.%n", addr); } System.out.printf("account's accesskey is:%s", accessKey); diff --git a/tools/src/main/java/org/apache/rocketmq/tools/command/acl/UpdateAccessConfigSubCommand.java b/tools/src/main/java/org/apache/rocketmq/tools/command/acl/UpdateAccessConfigSubCommand.java index 10241bf9..b625cd94 100644 --- a/tools/src/main/java/org/apache/rocketmq/tools/command/acl/UpdateAccessConfigSubCommand.java +++ b/tools/src/main/java/org/apache/rocketmq/tools/command/acl/UpdateAccessConfigSubCommand.java @@ -50,7 +50,7 @@ public class UpdateAccessConfigSubCommand implements SubCommand { Option opt = new Option("b", "brokerAddr", true, "update acl config file to which broker"); optionGroup.addOption(opt); - opt = new Option("c", "clusterName", true, "update cl config file to which cluster"); + opt = new Option("c", "clusterName", true, "update acl config file to which cluster"); optionGroup.addOption(opt); optionGroup.setRequired(true); -- GitLab