You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ignite.apache.org by GitBox <gi...@apache.org> on 2022/11/07 06:50:08 UTC

[GitHub] [ignite-3] Flaugh24 commented on a diff in pull request #1315: IGNITE-17977: Fix help command

Flaugh24 commented on code in PR #1315:
URL: https://github.com/apache/ignite-3/pull/1315#discussion_r1015053449


##########
modules/cli/src/main/java/org/apache/ignite/internal/cli/commands/node/NodeReplCommand.java:
##########
@@ -17,15 +17,23 @@
 
 package org.apache.ignite.internal.cli.commands.node;
 
+import org.apache.ignite.internal.cli.commands.BaseCommand;
 import org.apache.ignite.internal.cli.commands.node.config.NodeConfigReplCommand;
 import org.apache.ignite.internal.cli.commands.node.metric.NodeMetricReplCommand;
 import org.apache.ignite.internal.cli.commands.node.status.NodeStatusReplCommand;
 import org.apache.ignite.internal.cli.commands.node.version.NodeVersionReplCommand;
 import picocli.CommandLine.Command;
+import picocli.CommandLine.HelpCommand;
 
 /** Node command in REPL mode. */
 @Command(name = "node",
-        subcommands = {NodeConfigReplCommand.class, NodeStatusReplCommand.class, NodeVersionReplCommand.class, NodeMetricReplCommand.class},
+        subcommands = {
+                NodeConfigReplCommand.class,
+                NodeStatusReplCommand.class,
+                NodeVersionReplCommand.class,
+                NodeMetricReplCommand.class,
+                HelpCommand.class
+        },
         description = "Node operations")
-public class NodeReplCommand {
+public class NodeReplCommand extends BaseCommand {

Review Comment:
   All commands must support '--help' option, if want to use 'command help' syntax. 



-- 
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: notifications-unsubscribe@ignite.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org