diff options
author | Adam Frisby | 2007-05-14 16:33:44 +0000 |
---|---|---|
committer | Adam Frisby | 2007-05-14 16:33:44 +0000 |
commit | c7a6d627f2925440f54a55a407d7a2d5fb4be623 (patch) | |
tree | e4a14fa2356043ca3a7eee82783aadc33b7f9655 /OpenGridServices.GridServer/Main.cs | |
parent | * Commented out GridManager lines until they are checked into SVN (diff) | |
download | opensim-SC-c7a6d627f2925440f54a55a407d7a2d5fb4be623.zip opensim-SC-c7a6d627f2925440f54a55a407d7a2d5fb4be623.tar.gz opensim-SC-c7a6d627f2925440f54a55a407d7a2d5fb4be623.tar.bz2 opensim-SC-c7a6d627f2925440f54a55a407d7a2d5fb4be623.tar.xz |
Check if we have arguments before processing them.
Diffstat (limited to 'OpenGridServices.GridServer/Main.cs')
-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(); |