Skip to content

Commit e521433

Browse files
committed
Do not show empty default value for --prodcuer-names
Before this commit the help output showed: -pn, --producer-names=<producerNameStrategy> naming strategy for producer names. Valid values are 'uuid' or a pattern with stream name and producer index as arguments. If set, a publishing ID is automatically assigned to each outbound message. Default: which looks confusing when looking at the default value (empty string). Omit this default value in the help output.
1 parent 6aed989 commit e521433

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main/java/com/rabbitmq/stream/perf/StreamPerfTest.java

+1
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,7 @@ public class StreamPerfTest implements Callable<Integer> {
266266
+ "stream name and producer index as arguments. "
267267
+ "If set, a publishing ID is automatically assigned to each outbound message.",
268268
defaultValue = "",
269+
showDefaultValue = CommandLine.Help.Visibility.NEVER,
269270
converter = Utils.NameStrategyConverter.class)
270271
private BiFunction<String, Integer, String> producerNameStrategy;
271272

0 commit comments

Comments
 (0)