예제 #1
0
 public static async Task Parse(GlobalOptions goptions, string[] args)
 {
     RootCommand.Handler = CommandHandler.Create <ModeOptions>(options => Publicizer.Main(goptions, options));
     await RootCommand.InvokeAsync(args).ConfigureAwait(false);
 }
예제 #2
0
 private static async Task Main()
 {
     Console.OutputEncoding = new UTF8Encoding(false, false);
     await GlobalOptions.Parse(Environment.GetCommandLineArgs()).ConfigureAwait(false);
 }