AndrewJSchofield commented on code in PR #20385: URL: https://github.com/apache/kafka/pull/20385#discussion_r2301208155
########## tools/src/main/java/org/apache/kafka/tools/ShareConsumerPerformance.java: ########## @@ -366,7 +382,9 @@ public ShareConsumerPerfOptions(String[] args) { } if (options != null) { CommandLineUtils.maybePrintHelpOrVersion(this, "This tool is used to verify the share consumer performance."); - CommandLineUtils.checkRequiredArgs(parser, options, topicOpt, numMessagesOpt); + CommandLineUtils.checkRequiredArgs(parser, options, topicOpt, numRecordsOpt); + CommandLineUtils.checkOneOfArgs(parser, options, numMessagesOpt, numRecordsOpt); + CommandLineUtils.checkOneOfArgs(parser, options, consumerConfigOpt, commandConfigOpt); Review Comment: I have just confirmed by running the code. This now requires either `--consumer.config` or `--command-config`. In practice, neither should be required, but you just can't use both together. -- 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: jira-unsubscr...@kafka.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org