joshua2519 commented on code in PR #20293:
URL: https://github.com/apache/kafka/pull/20293#discussion_r2374755242
##########
tools/src/main/java/org/apache/kafka/tools/streams/StreamsGroupCommand.java:
##########
@@ -83,27 +85,46 @@ public class StreamsGroupCommand {
static final String MISSING_COLUMN_VALUE = "-";
public static void main(String[] args) {
- StreamsGroupCommandOptions opts = new StreamsGroupCommandOptions(args);
+ Exit.exit(execute(args));
+ }
+
+ public static int execute(String[] args) {
+ StreamsGroupCommandOptions opts = null;
+ int exitCode = 0;
try {
- opts.checkArgs();
+ opts = new StreamsGroupCommandOptions(args);
+ Objects.requireNonNull(opts).checkArgs();
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]