pulsar-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mme...@apache.org
Subject [pulsar] branch master updated: Support CLI pulsar-admin subcommands for concise description. (#3579)
Date Tue, 12 Feb 2019 23:07:13 GMT
This is an automated email from the ASF dual-hosted git repository.

mmerli pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/pulsar.git


The following commit(s) were added to refs/heads/master by this push:
     new c000ad4  Support CLI pulsar-admin subcommands for concise description. (#3579)
c000ad4 is described below

commit c000ad46bf60abe9c665bdd45d0ba878307b49d1
Author: Fangbin Sun <sunfangbin@gmail.com>
AuthorDate: Wed Feb 13 07:07:07 2019 +0800

    Support CLI pulsar-admin subcommands for concise description. (#3579)
---
 .../src/main/java/org/apache/pulsar/admin/cli/CmdBase.java             | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/pulsar-client-tools/src/main/java/org/apache/pulsar/admin/cli/CmdBase.java b/pulsar-client-tools/src/main/java/org/apache/pulsar/admin/cli/CmdBase.java
index 90cfd6a..a66436b 100644
--- a/pulsar-client-tools/src/main/java/org/apache/pulsar/admin/cli/CmdBase.java
+++ b/pulsar-client-tools/src/main/java/org/apache/pulsar/admin/cli/CmdBase.java
@@ -45,7 +45,8 @@ public abstract class CmdBase {
         } catch (Exception e) {
             System.err.println(e.getMessage());
             System.err.println();
-            jcommander.usage();
+            String chosenCommand = jcommander.getParsedCommand();
+            jcommander.usage(chosenCommand);
             return false;
         }
 


Mime
View raw message