Skip to content

fix: listacl typo. resolves @issue9345#9346

Open
zhjuzi wants to merge 1 commit intoapache:developfrom
zhjuzi:develop
Open

fix: listacl typo. resolves @issue9345#9346
zhjuzi wants to merge 1 commit intoapache:developfrom
zhjuzi:develop

Conversation

@zhjuzi
Copy link
Copy Markdown

@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
Copy Markdown

codecov-commenter commented Apr 21, 2025

Codecov Report

❌ 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).
⚠️ Report is 274 commits behind head on develop.

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.04%   48.00%   -0.05%     
+ Complexity     12142    12123      -19     
=============================================
  Files           1323     1323              
  Lines          93395    93395              
  Branches       11997    11997              
=============================================
- Hits           44875    44836      -39     
- Misses         42971    42993      +22     
- Partials        5549     5566      +17     

☔ 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.

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
Copy Markdown
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
Copy Markdown
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