コード例 #1
0
        public static int Main(string[] args)
        {
            _logger = new ConsoleLogger(
                ConsoleLoggerOptions.DisplayBanner
                | ConsoleLoggerOptions.UseLabels
                | ConsoleLoggerOptions.ShowTime);

            using (var processor = new CommandLineProcessor(args))
            {
                processor.WithErrorAction(ShowErrors)
                .WithHelpAction(ShowHelp);

                return(processor.Parse <ProgramOptions>()
                       .Execute(MainCore));
            }
        }