private static int RunProgramm(string[] args) { var options = new Options(); ICommandLineParser parser = new CommandLineParser(); if (parser.ParseArguments(args, options, System.Console.Error)) { try { new PatchPatcher(options).Run(); return 0; } catch (Exception e) { System.Console.Error.WriteLine(e.ToString()); if (Debugger.IsAttached) throw; return -1; } } return -1; }
public PatchPatcher(Options options) { _options = options; }