Check if we have arguments before processing them.
parent
3ee195b1e6
commit
c7a6d627f2
|
@ -66,7 +66,10 @@ namespace OpenGridServices.GridServer
|
||||||
[STAThread]
|
[STAThread]
|
||||||
public static void Main(string[] args)
|
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");
|
Console.WriteLine("Starting...\n");
|
||||||
|
|
||||||
thegrid = new OpenGrid_Main();
|
thegrid = new OpenGrid_Main();
|
||||||
|
|
Loading…
Reference in New Issue