diff options
Diffstat (limited to 'OpenGridServices.GridServer')
-rw-r--r-- | OpenGridServices.GridServer/Main.cs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/OpenGridServices.GridServer/Main.cs b/OpenGridServices.GridServer/Main.cs index 54db7c6..cacef5e 100644 --- a/OpenGridServices.GridServer/Main.cs +++ b/OpenGridServices.GridServer/Main.cs | |||
@@ -66,7 +66,10 @@ namespace OpenGridServices.GridServer | |||
66 | [STAThread] | 66 | [STAThread] |
67 | public static void Main(string[] args) | 67 | public static void Main(string[] args) |
68 | { | 68 | { |
69 | if(args[0]=="-setuponly") setuponly=true; | 69 | if (args.Length > 0) |
70 | { | ||
71 | if (args[0] == "-setuponly") setuponly = true; | ||
72 | } | ||
70 | Console.WriteLine("Starting...\n"); | 73 | Console.WriteLine("Starting...\n"); |
71 | 74 | ||
72 | thegrid = new OpenGrid_Main(); | 75 | thegrid = new OpenGrid_Main(); |