public void Execute(IExampleInterface app) { if (app.Args.Length != 2) { Console.WriteLine("Usage: AnalystExample [iris/forest] [data directory]"); Console.WriteLine("Data directory can be any empty directory. Raw files will be downloaded to here."); return; } String command = app.Args[0].Trim().ToLower(); var dir = new FileInfo(app.Args[1].Trim()); var example = new AnalystExample(); if (String.Compare(command, "forest", true) == 0) { example.ForestExample(dir); } else if (String.Compare(command, "iris", true) == 0) { example.IrisExample(dir); } else { Console.WriteLine("Unknown command: " + command); } }