public static int Main(string[] args) { ProgramUtils.Init(); using var handler = new CliTaskHandler(); return((int)ProgramUtils.Run(args, handler, gui: false)); }
public static int Main(string[] args) { ProgramUtils.Init(); if (WindowsUtils.IsWindows) { if (WindowsUtils.AttachConsole()) { return((int)RunCliRedirect(args)); } else { return((int)RunGui(args)); } } else { return((int)RunCli(args)); } }