예제 #1
0
        private static int Main(string[] args)
        {
            Options options;

            try
            {
                options = ArgsParser <Options> .Parse(args);
            }
            catch (ArgumentException e)
            {
                Console.WriteLine(e.Message);
                return(1);
            }

            var application = new Application(options.BatchSize);

            return(application.Pump(options.Table, options.Source, options.Destination));
        }
예제 #2
0
        public static T Parse(string[] args)
        {
            var parser = new ArgsParser <T>(args);

            return(parser.Parse());
        }