public override void Execute(CommandSwitchValues values) { int id = values.GetSwitchAsInt("-id"); using (var scriptController = ControllerFactory.MakeEventScriptController()) { ReportGenerator generator = new ReportGenerator(Console.Out); generator.DisplayScript(scriptController.GetScriptbyId(id)); } }