Skip to content

Commit

Permalink
Fix tls flag option
Browse files Browse the repository at this point in the history
Signed-off-by: acarbonetto <[email protected]>
  • Loading branch information
acarbonetto committed Sep 27, 2023
1 parent acd1934 commit b3fc45d
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,8 @@ private static Options getOptions() {
"l", "clients", true, "one of: all|jedis|jedis_async|lettuce|lettuce_async|babushka [all]");
options.addOption("h", "host", true, "host url [localhost]");
options.addOption("p", "port", true, "port number [6379]");
options.addOption("n", "clientCount", true, "Client count [1]");
options.addOption("t", "tls", false, "TLS [true]");
options.addOption("n", "clientCount", true, "Client count [1 2]");
options.addOption("t", "tls", false, "TLS [false]");

return options;
}
Expand Down Expand Up @@ -188,9 +188,7 @@ private static RunConfiguration verifyOptions(CommandLine line) throws ParseExce
Arrays.stream(clientCount.split("\\s+")).mapToInt(Integer::parseInt).toArray();
}

if (line.hasOption("tls")) {
runConfiguration.tls = Boolean.parseBoolean(line.getOptionValue("tls"));
}
runConfiguration.tls = line.hasOption("tls");

return runConfiguration;
}
Expand Down

0 comments on commit b3fc45d

Please sign in to comment.