Ejemplo n.º 1
0
        static void Main(string[] args)
        {
            InputGetter input = new InputGetter("input.txt");

            ProgramFramework framework = new ProgramFramework();

            framework.InputHandler = input.GetStringsFromInput;
            framework.Part1Handler = Part1;
            framework.Part2Handler = Part2;
            framework.RunProgram();
        }
Ejemplo n.º 2
0
        static int Main(string[] args)
        {
            var work = new ProgramFramework()
                       .SetMessageOnParseFailure(Usage)
                       .RegisterCommandLineVerb <OptionGroup_ToJson>("to-json", new Verb_to_json())
                       .RegisterCommandLineVerb <OptionGroup_IO>("to-savg", new Verb_to_gvas())
                       .Init();

            int r = work.Run(args);

            Console.WriteLine("All done.");
            return(r);
        }