tengqm commented on code in PR #5852:
URL: https://github.com/apache/gravitino/pull/5852#discussion_r1886865590
##########
clients/cli/src/main/java/org/apache/gravitino/cli/Main.java:
##########
@@ -75,7 +75,8 @@ protected static String resolveCommand(CommandLine line) {
return action;
}
} else if (args.length == 1) {
- return CommandActions.DETAILS; /* Default to 'details' command. */
+ /* Default to 'details' command. */
+ return line.hasOption(GravitinoOptions.HELP) ? CommandActions.HELP :
CommandActions.DETAILS;
Review Comment:
Isn't the HELP option generic?
I mean, it could be applied to any command, not matter how many args are
provide.
##########
clients/cli/src/main/java/org/apache/gravitino/cli/Main.java:
##########
@@ -75,7 +75,8 @@ protected static String resolveCommand(CommandLine line) {
return action;
}
} else if (args.length == 1) {
- return CommandActions.DETAILS; /* Default to 'details' command. */
+ /* Default to 'details' command. */
+ return line.hasOption(GravitinoOptions.HELP) ? CommandActions.HELP :
CommandActions.DETAILS;
Review Comment:
Isn't the HELP option generic?
I mean, it could be applied to any command, not matter how many args are
provided.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]