justinmclean commented on code in PR #7016:
URL: https://github.com/apache/gravitino/pull/7016#discussion_r2076800285


##########
clients/cli/src/main/java/org/apache/gravitino/cli/GravitinoCommandLine.java:
##########
@@ -64,29 +62,13 @@ public void handleCommandLine() {
   /** Handles the parsed command line arguments and executes the corresponding 
actions. */
   public void handleSimpleLine() {
     /* Display command usage. */
-    if (line.hasOption(GravitinoOptions.HELP)) {
-      displayHelp(options);
-    } else {
-      CommandContext context = new CommandContext(line);
-      new SimpleCommandHandler(this, line, context).handle();
-    }
-  }
-
-  /**
-   * Displays the help message for the command line tool.
-   *
-   * @param options The command options.
-   */
-  public static void displayHelp(Options options) {
-    HelpFormatter formatter = new HelpFormatter();
-    formatter.printHelp(CMD, options);
+    CommandContext context = new CommandContext(line);
+    new SimpleCommandHandler(this, line, context).handle();
   }
 
   /** Executes the appropriate command based on the command type. */
   private void executeCommand(CommandContext context) {
-    if (CommandActions.HELP.equals(command)) {
-      handleHelpCommand();
-    } else if (line.hasOption(GravitinoOptions.OWNER)) {

Review Comment:
   why has this been removed?



-- 
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]

Reply via email to