diff --git a/clients/cli/src/main/java/org/apache/gravitino/cli/Main.java b/clients/cli/src/main/java/org/apache/gravitino/cli/Main.java index e81362b20d6..49aaa9e7ad8 100644 --- a/clients/cli/src/main/java/org/apache/gravitino/cli/Main.java +++ b/clients/cli/src/main/java/org/apache/gravitino/cli/Main.java @@ -31,6 +31,10 @@ public class Main { public static void main(String[] args) { CommandLineParser parser = new DefaultParser(); Options options = new GravitinoOptions().options(); + if (args.length == 0) { + GravitinoCommandLine.displayHelp(options); + return; + } try { CommandLine line = parser.parse(options, args);