Changeset 24911

Show
Ignore:
Timestamp:
16.12.2011 17:51:02 (8 years ago)
Author:
ak19
Message:

Number of required arguments changed recently with the introduction of the GSDLOS_GSDLARCH parameter, so the test for validating the number of input parameters needed to be updated as well.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/src/java/org/greenstone/server/Server2.java

    r24908 r24911  
    446446    public static void main (String[] args) 
    447447    { 
    448         if ((args.length < 1) || (args.length > 5)) { 
     448        if ((args.length < 2) || (args.length > 6)) { 
    449449        System.err.println( 
    450            "Usage: java org.greenstone.server.Server2 <gsdl2-home-dir> [GSDLOS_GSDLARCH] [lang] [--mode=\"gli\"] [--config=configfile] [--quitport=portNum]"); 
     450           "Usage: java org.greenstone.server.Server2 <gsdl2-home-dir> <GSDLOS_GSDLARCH> [lang] [--mode=\"gli\"] [--config=configfile] [--quitport=portNum]"); 
    451451        System.exit(1); 
    452452        }