summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBjörn Hagemeister2014-10-20 15:03:09 +0200
committerBjörn Hagemeister2014-10-20 15:03:09 +0200
commit45976e534f310e8bdd20fc455acf393c1f1cc258 (patch)
tree43aeff92777b393b5a78fd18239bf24821537f3c /src
parentEdited return information of command line argument options. (diff)
downloadsatellite-daemon-45976e534f310e8bdd20fc455acf393c1f1cc258.tar.gz
satellite-daemon-45976e534f310e8bdd20fc455acf393c1f1cc258.tar.xz
satellite-daemon-45976e534f310e8bdd20fc455acf393c1f1cc258.zip
Edited error in reading arguments at --import option.
Diffstat (limited to 'src')
-rw-r--r--src/main/java/org/openslx/satellitedaemon/App.java2
1 files changed, 1 insertions, 1 deletions
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, <OrgName> <Modulus> <priv_Exponent> <pub_Exponent>" );
System.exit( 2 );
} else {