chennaji9 opened a new issue, #11328:
URL: https://github.com/apache/rocketmq/issues/11328
### Description
The operations-demo consumer
`example/src/main/java/org/apache/rocketmq/example/operation/Consumer.java`
prints its own usage with the wrong command label. Both help paths say
"producer":
```java
// Consumer.java:101 and :105
hf.printHelp("producer", options, true);
```
Running the consumer with `-h` (or with invalid arguments) prints `usage:
producer ...` followed by the *consumer* options (`consumerGroup`,
`subscription`, ...). The same file's sibling `Producer.java` correctly prints
`usage: producer`, so a user following both examples sees two programs both
claiming to be "producer".
### Expected behavior
The consumer should print `usage: consumer ...` for its own options —
`hf.printHelp("consumer", options, true)` in both places.
--
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]