Check if we have arguments before processing them.

zircon^2
Adam Frisby 2007-05-14 16:33:44 +00:00
parent 3ee195b1e6
commit c7a6d627f2
1 changed files with 4 additions and 1 deletions

View File

@ -66,7 +66,10 @@ namespace OpenGridServices.GridServer
[STAThread]
public static void Main(string[] args)
{
if(args[0]=="-setuponly") setuponly=true;
if (args.Length > 0)
{
if (args[0] == "-setuponly") setuponly = true;
}
Console.WriteLine("Starting...\n");
thegrid = new OpenGrid_Main();