Skip to content

Commit a7d91d7

Browse files
Make sure -e/--exchange is a single value flag
Spotted by @mcintyred.
1 parent 52ad896 commit a7d91d7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main/java/com/rabbitmq/perf/PerfTest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,7 @@ private static Options getOptions() {
205205
final Option exchangeOpt = new Option("e", "exchange name");
206206
exchangeOpt.setLongOpt("exchange");
207207
exchangeOpt.setOptionalArg(true);
208+
exchangeOpt.setArgs(1);
208209
options.addOption(exchangeOpt);
209210

210211
options.addOption(new Option("u", "queue", true, "queue name"));

0 commit comments

Comments
 (0)