reduce scope of OpenRA.Utility.Program.actions

This commit is contained in:
Chris Forbes
2011-02-05 11:51:59 +13:00
parent 6afbb5550a
commit ed6a83db89

View File

@@ -19,7 +19,6 @@ namespace OpenRA.Utility
{ {
class Program class Program
{ {
static Dictionary<string, Action<string[]>> actions;
const int PipeBufferSize = 1024 * 1024; const int PipeBufferSize = 1024 * 1024;
static PipeSecurity MakePipeSecurity() static PipeSecurity MakePipeSecurity()
@@ -35,7 +34,7 @@ namespace OpenRA.Utility
static void Main(string[] args) static void Main(string[] args)
{ {
actions = new Dictionary<string, Action<string[]>>() var actions = new Dictionary<string, Action<string[]>>()
{ {
{ "--extract-zip-inner", Command.ExtractZip }, { "--extract-zip-inner", Command.ExtractZip },
{ "--install-ra-packages-inner", Command.InstallRAPackages }, { "--install-ra-packages-inner", Command.InstallRAPackages },