nodece commented on code in PR #22209:
URL: https://github.com/apache/pulsar/pull/22209#discussion_r1524720649


##########
pulsar-client-tools/src/main/java/org/apache/pulsar/client/cli/CmdProduce.java:
##########
@@ -237,26 +238,30 @@ private static byte[] jsonToAvro(String m, 
org.apache.avro.Schema avroSchema){
         }
     }
 
+    @Spec
+    private CommandSpec commandSpec;
+
     /**
      * Run the producer.
      *
      * @return 0 for success, < 0 otherwise
      * @throws Exception
      */
     public int run() throws PulsarClientException {
-        if (mainOptions.size() != 1) {
-            throw (new ParameterException("Please provide one and only one 
topic name."));
-        }
+        System.out.println("run");

Review Comment:
   Done.



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