Skip to content

Commit f6746a7

Browse files
Merge pull request apache#440 from Hellojungle/fix#439
[ISSUE apache#439] fix ConsumeMessageCommand -g option
2 parents 37a642c + 5898399 commit f6746a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/src/main/java/org/apache/rocketmq/tools/command/message/ConsumeMessageCommand.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ public void execute(final CommandLine commandLine, final Options options, RPCHoo
131131
try {
132132
/* Group name must be set before consumer start */
133133
if (commandLine.hasOption('g')) {
134-
String consumerGroup = commandLine.getOptionValue('b').trim();
134+
String consumerGroup = commandLine.getOptionValue('g').trim();
135135
defaultMQPullConsumer.setConsumerGroup(consumerGroup);
136136
}
137137

0 commit comments

Comments
 (0)