diff options
author | Frode Lundgren <frodelu@yahoo-inc.com> | 2019-10-02 13:21:43 +0200 |
---|---|---|
committer | Frode Lundgren <frodelu@yahoo-inc.com> | 2019-10-02 13:21:43 +0200 |
commit | a1fa45d0ea617bfacd1d540b9844dc312ad74817 (patch) | |
tree | d21f07423576d467c4a8b60780dcd3122f1ad154 /vespa-http-client/src | |
parent | 4a3c8fb04a3153bfacb3269751b44970fe308ed1 (diff) |
Exit with non-zero status upon command line option errors
Diffstat (limited to 'vespa-http-client/src')
-rw-r--r-- | vespa-http-client/src/main/java/com/yahoo/vespa/http/client/runner/Runner.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vespa-http-client/src/main/java/com/yahoo/vespa/http/client/runner/Runner.java b/vespa-http-client/src/main/java/com/yahoo/vespa/http/client/runner/Runner.java index 6ed6cae7346..74e59aa7579 100644 --- a/vespa-http-client/src/main/java/com/yahoo/vespa/http/client/runner/Runner.java +++ b/vespa-http-client/src/main/java/com/yahoo/vespa/http/client/runner/Runner.java @@ -61,7 +61,7 @@ public class Runner { public static void main(String[] args) throws IOException { CommandLineArguments commandLineArgs = CommandLineArguments.build(args); if (commandLineArgs == null) { - return; + System.exit(-1); } FormatInputStream formatInputStream = new FormatInputStream( |