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); }
private static async Task Main() { Console.OutputEncoding = new UTF8Encoding(false, false); await GlobalOptions.Parse(Environment.GetCommandLineArgs()).ConfigureAwait(false); }