bug fix: help info was always showed
authorf.revilla <f.revilla@localhost>
Tue, 22 Jun 2010 13:19:48 +0000 (13:19 +0000)
committerf.revilla <f.revilla@localhost>
Tue, 22 Jun 2010 13:19:48 +0000 (13:19 +0000)
cdm-server/src/main/java/eu/etaxonomy/cdm/server/Bootloader.java

index 7d7a272e7cf3d7c1784c94005c60ab61a21374c5..78b3f0dceb06597019786c4a65021d2d25d2b32e 100644 (file)
@@ -201,11 +201,13 @@ public final class Bootloader {
                CommandLine cmdLine = parseCommandOptions(args);
                
                 // print the help message
-                if(cmdLine.hasOption(HELP.getOpt()) || cmdLine.getOptions().length == 0){
+               
+                if(cmdLine.hasOption(HELP.getOpt())){
                         HelpFormatter formatter = new HelpFormatter();
                         formatter.printHelp( "java .. ", CommandOptions.getOptions() );
                         System.exit(0);
                 }
+                
 
                logger.info("Starting "+APPLICATION_NAME);
                logger.info("Using  " + System.getProperty("user.home") + " as home directory. Can be specified by -Duser.home=<FOLDER>");