From 45976e534f310e8bdd20fc455acf393c1f1cc258 Mon Sep 17 00:00:00 2001 From: Björn Hagemeister Date: Mon, 20 Oct 2014 15:03:09 +0200 Subject: Edited error in reading arguments at --import option. --- src/main/java/org/openslx/satellitedaemon/App.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/openslx/satellitedaemon/App.java b/src/main/java/org/openslx/satellitedaemon/App.java index 3cdb62a..2982a84 100644 --- a/src/main/java/org/openslx/satellitedaemon/App.java +++ b/src/main/java/org/openslx/satellitedaemon/App.java @@ -53,7 +53,7 @@ public class App System.exit( 2 ); } } else if ( arg.equals( "--import" ) ) { - if ( ( i + 4 ) < args.length ) { + if ( args.length != 5 ) { log.error( "Illegal option: '--import' requires 4 arguments, " ); System.exit( 2 ); } else { -- cgit v1.2.3-55-g7522