/// <summary> /// Main function. /// </summary> /// <param name="args">Command line args.</param> private static int Main(string[] args) { try { var stopwatch = Stopwatch.StartNew(); // TODO: Add flags for some parameters. if (args.Length == 2) { var combiner = new Combiner(); combiner.Combine(args[0], args[1]); } // TODO: Add help output. stopwatch.Stop(); Trace.WriteLine(string.Format("Combine time: {0}", stopwatch.Elapsed)); if (Debugger.IsAttached) { Console.ReadLine(); } return 0; } catch (Exception e) { Trace.WriteLine(e); Console.WriteLine(e); return 1; } }