mirror of
https://github.com/apache/rocketmq.git
synced 2026-09-01 15:47:01 +08:00
Merge pull request #440 from Hellojungle/fix#439
[ISSUE #439] fix ConsumeMessageCommand -g option
This commit is contained in:
+1
-1
@@ -131,7 +131,7 @@ public class ConsumeMessageCommand implements SubCommand {
|
||||
try {
|
||||
/* Group name must be set before consumer start */
|
||||
if (commandLine.hasOption('g')) {
|
||||
String consumerGroup = commandLine.getOptionValue('b').trim();
|
||||
String consumerGroup = commandLine.getOptionValue('g').trim();
|
||||
defaultMQPullConsumer.setConsumerGroup(consumerGroup);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user