Skip to content

fix: listacl typo. resolves @issue9345 #9346

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

zhjuzi
Copy link

@zhjuzi zhjuzi commented Apr 20, 2025

This PR Fixes

Fixes #9345

Brief Description

This pull request fixes a typo in the option description of the ListAclSubCommand class.
Specifically, it changes "the resources of acl to filter." to use the correct word "resources" instead of the incorrect "resource" in the description for the -r/--resource option.

How Did You Test This Change?

This change only modifies a string in the command-line option description, so no functional code is affected.
I verified the change by reviewing the help output of the command to ensure the description now displays correctly.
No additional tests are required.

@codecov-commenter
Copy link

Codecov Report

Attention: Patch coverage is 0% with 1 line in your changes missing coverage. Please review.

Project coverage is 48.00%. Comparing base (854369a) to head (1b5c093).

Files with missing lines Patch % Lines
...rocketmq/tools/command/auth/ListAclSubCommand.java 0.00% 1 Missing ⚠️
Additional details and impacted files
@@              Coverage Diff              @@
##             develop    #9346      +/-   ##
=============================================
- Coverage      48.03%   48.00%   -0.03%     
+ Complexity     12139    12123      -16     
=============================================
  Files           1323     1323              
  Lines          93395    93395              
  Branches       11997    11997              
=============================================
- Hits           44864    44836      -28     
- Misses         42979    42993      +14     
- Partials        5552     5566      +14     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@@ -63,7 +63,7 @@ public Options buildCommandlineOptions(Options options) {
opt.setRequired(false);
options.addOption(opt);

opt = new Option("r", "resource", true, "the resource of acl to filter.");
opt = new Option("r", "resource", true, "the resources of acl to filter.");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

From the code point of view, this is a single resource, so it should not be changed directly like this.

Copy link
Contributor

@dingshuangxi888 dingshuangxi888 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug] mqadmin listAcl 参数拼写错误
4 participants