Esempio n. 1
0
        public static int Main(string[] args)
        {
            ProgramUtils.Init();

            using var handler = new CliTaskHandler();
            return((int)ProgramUtils.Run(args, handler, gui: false));
        }
Esempio n. 2
0
        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));
            }
        }