| 123456789101112131415161718192021222324 |
- using System.Diagnostics;
- using Day19;
- if (args.Any(a => a == "--debug"))
- {
- Console.WriteLine("DEBUG");
- Console.WriteLine(Debugger.Launch());
- }
- if (args.Length < 1)
- {
- Console.WriteLine("Requires 1 args: inputFileName");
- return -1;
- }
- var inputFile = args[0];
- var parser = new Parser();
- var data = parser.Parse(inputFile);
- var result = data.Process();
- Console.WriteLine();
- Console.WriteLine($"Result: {result}");
- return 0;
|