Mercurial > stress-tester
changeset 427:c6223fd78e17
minor
author | Devel 1 |
---|---|
date | Wed, 26 Jul 2017 12:06:14 +0200 |
parents | e814e2c0a600 |
children | 6b2de330bf09 |
files | stress-tester/src/main/java/com/passus/st/Main.java |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/stress-tester/src/main/java/com/passus/st/Main.java Wed Jul 26 09:58:57 2017 +0200 +++ b/stress-tester/src/main/java/com/passus/st/Main.java Wed Jul 26 12:06:14 2017 +0200 @@ -106,7 +106,7 @@ .build() ); - options.addOption(option("hp", "httpPorts").desc("Specify HTTP ports in input file.") + options.addOption(option("hp", "httpPorts").desc("Specify HTTP ports in input file (default: 80, 8080)") .hasArgs().argName("ports") .build() ); @@ -291,6 +291,8 @@ if (cl.hasOption("hp")) { PortRangeSet portsRanges = eventSrc.getPortsRange(); + portsRanges.clear(); + String[] ports = cl.getOptionValues("hp"); for (String port : ports) { portsRanges.add(port);