示例#1
0
        public static async Task <int> Main(string[] args)
        {
            var command = CommandLineOptions.RootCommand();

            command.Handler = CommandHandler.Create <CommandLineOptions>((CommandLineOptions options) => InnerMain(options));
            return(await command.InvokeAsync(args));
        }
示例#2
0
        public static async Task <int> Main(string[] args)
        {
            PerfEventSource.StartStopEvents.CommandLineProcessingStart();
            var command = CommandLineOptions.RootCommand();

            command.Handler = CommandHandler.Create <CommandLineOptions>((CommandLineOptions options) => InnerMain(options));
            return(await command.InvokeAsync(args));
        }