diff options
author | Kristian Aune <kristian@ymail.com> | 2019-05-13 10:30:51 +0200 |
---|---|---|
committer | Kristian Aune <kristian@ymail.com> | 2019-05-13 10:30:51 +0200 |
commit | 325d59a9c4c983e74cf261d633c98d644f38ccdb (patch) | |
tree | 43903aaf86e611b0c922a7d3776ce22282dba541 /vespa-http-client/src/main/java/com/yahoo | |
parent | 2493c712767aaef001cd352e36daeaf3efa2b20f (diff) |
better tests, not allow both host/endpoint
Diffstat (limited to 'vespa-http-client/src/main/java/com/yahoo')
-rw-r--r-- | vespa-http-client/src/main/java/com/yahoo/vespa/http/client/runner/CommandLineArguments.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/vespa-http-client/src/main/java/com/yahoo/vespa/http/client/runner/CommandLineArguments.java b/vespa-http-client/src/main/java/com/yahoo/vespa/http/client/runner/CommandLineArguments.java index dff5e0f4ef3..4e2c8f1509e 100644 --- a/vespa-http-client/src/main/java/com/yahoo/vespa/http/client/runner/CommandLineArguments.java +++ b/vespa-http-client/src/main/java/com/yahoo/vespa/http/client/runner/CommandLineArguments.java @@ -52,6 +52,10 @@ public class CommandLineArguments { return null; } if (cmdArgs.endpointArg != null) { + if (cmdArgs.hostArg != null) { + System.err.println("Cannot set both '--host' and '--endpoint' "); + return null; + } try { URL url = new URL(cmdArgs.endpointArg); } catch (MalformedURLException e) { |