aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorAdam Frisby2007-05-14 16:33:44 +0000
committerAdam Frisby2007-05-14 16:33:44 +0000
commitc7a6d627f2925440f54a55a407d7a2d5fb4be623 (patch)
treee4a14fa2356043ca3a7eee82783aadc33b7f9655
parent* Commented out GridManager lines until they are checked into SVN (diff)
downloadopensim-SC_OLD-c7a6d627f2925440f54a55a407d7a2d5fb4be623.zip
opensim-SC_OLD-c7a6d627f2925440f54a55a407d7a2d5fb4be623.tar.gz
opensim-SC_OLD-c7a6d627f2925440f54a55a407d7a2d5fb4be623.tar.bz2
opensim-SC_OLD-c7a6d627f2925440f54a55a407d7a2d5fb4be623.tar.xz
Check if we have arguments before processing them.
-rw-r--r--OpenGridServices.GridServer/Main.cs5
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();