-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
[testclient] Replace '--auth_plugin' with '--auth-plugin' #12263
[testclient] Replace '--auth_plugin' with '--auth-plugin' #12263
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very good
But we should change that variable name
@@ -95,7 +95,10 @@ | |||
@Parameter(names = { "-t", "--num-topic" }, description = "Number of topics", validateWith = PositiveNumberParameterValidator.class) | |||
public int numTopics = 1; | |||
|
|||
@Parameter(names = { "--auth_plugin" }, description = "Authentication plugin class name") | |||
@Parameter(names = { "--auth_plugin" }, description = "Authentication plugin class name", hidden = true) | |||
public String DEPRECATED_authPluginClassName; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is bad name for a Java field.
Please use Camel case
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
### Motivation The name of the option should be linked with a horizontal line(-) instead of an underline(_) in CLI, so that it conforms to the unified standard. Therefore, option --auth_plugin should be deprecated and replaced with --auth-plugin. ### Modifications Hidden --auth_plugin --auth_plug takes effect when --auth-plugin is blank and --auth_plugin is not blank
Motivation
The name of the option should be linked with a horizontal line(-) instead of an underline(_) in
CLI
, so that it conforms to the unified standard.Therefore, option
--auth_plugin
should be deprecated and replaced with--auth-plugin
.Modifications
--auth_plugin
--auth_plug
takes effect when--auth-plugin
is blank and--auth_plugin
is not blankDocumentation