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)); }
public static T Parse(string[] args) { var parser = new ArgsParser <T>(args); return(parser.Parse()); }