diff options
author | valerijf <valerijf@yahoo-inc.com> | 2016-07-06 12:04:47 +0200 |
---|---|---|
committer | valerijf <valerijf@yahoo-inc.com> | 2016-07-06 12:04:47 +0200 |
commit | ce0a70c4c57e554d610bf7c015a468914ecbbc4c (patch) | |
tree | 0a4b55b64dacf4a94bb22075726ac938ed8472a0 /vespa-http-client | |
parent | 956ed615fc1871f1099a081d70e5978cfae21fc5 (diff) |
Argument --file no longer required by CommandLineArguments
Diffstat (limited to 'vespa-http-client')
2 files changed, 1 insertions, 9 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 80a24bc17f2..d90a708622a 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 @@ -44,11 +44,6 @@ public class CommandLineArguments { return null; } - if (cmdArgs.fileArg == null) { - System.err.println("In the current version you need to specify filename, stream not supported." + - " Set --file to specify file."); - return null; - } if (cmdArgs.hostArg == null) { System.err.println("'--host' not set."); return null; diff --git a/vespa-http-client/src/test/java/com/yahoo/vespa/http/client/runner/CommandLineArgumentsTest.java b/vespa-http-client/src/test/java/com/yahoo/vespa/http/client/runner/CommandLineArgumentsTest.java index fef1249e1a0..0075e89a2f3 100644 --- a/vespa-http-client/src/test/java/com/yahoo/vespa/http/client/runner/CommandLineArgumentsTest.java +++ b/vespa-http-client/src/test/java/com/yahoo/vespa/http/client/runner/CommandLineArgumentsTest.java @@ -32,16 +32,13 @@ public class CommandLineArgumentsTest { private void addMinimum() { add("host", "hostValue"); - add("file", "fileValue"); } + private ArrayList<String> args = new ArrayList<>(); @Test public void testRequiredFlags() { assertThat(CommandLineArguments.build(asArray()), is(nullValue())); - add("host", "hostValue"); - assertThat(CommandLineArguments.build(asArray()), is(nullValue())); - args.clear(); add("file", "fileValue"); assertThat(CommandLineArguments.build(asArray()), is(nullValue())); args.clear(); |