diff options
author | Björn Hagemeister | 2014-10-20 15:03:09 +0200 |
---|---|---|
committer | Björn Hagemeister | 2014-10-20 15:03:09 +0200 |
commit | 45976e534f310e8bdd20fc455acf393c1f1cc258 (patch) | |
tree | 43aeff92777b393b5a78fd18239bf24821537f3c | |
parent | Edited return information of command line argument options. (diff) | |
download | satellite-daemon-45976e534f310e8bdd20fc455acf393c1f1cc258.tar.gz satellite-daemon-45976e534f310e8bdd20fc455acf393c1f1cc258.tar.xz satellite-daemon-45976e534f310e8bdd20fc455acf393c1f1cc258.zip |
Edited error in reading arguments at --import option.
-rw-r--r-- | src/main/java/org/openslx/satellitedaemon/App.java | 2 |
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 { |