static void Main(string[] args) { Console.ForegroundColor = ConsoleColor.Green; try { if (!ValidArguments(args)) { throw new ArgumentException("Usage: QuizImporter path_to_import_csv_file path_to_target_db_file"); } ImportController controller = new ImportController(args[0], args[1]); controller.Import(); } catch (Exception ex) { ReportException(ex); } finally { Console.ForegroundColor = ConsoleColor.Yellow; Console.WriteLine(); Console.WriteLine("Press ENTER to exit.."); Console.ReadLine(); } }