Ejemplo n.º 1
0
        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;
        }
Ejemplo n.º 2
0
 public PatchPatcher(Options options)
 {
     _options = options;
 }