Changeset 24911


Ignore:
Timestamp:
12/16/11 17:51:02 (9 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.

File:
1 edited

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        }
Note: See TracChangeset for help on using the changeset viewer.