static void RunOptionsAndReturnExitCode(InspectorOptions options) { using (var inspector = new Inspector()) { inspector.AddLogger(new ConsoleLogger()); inspector.Run(options); } Environment.ExitCode = 0; }