Пример #1
0
        void MainImpl(string[] args)
        {
#if TEST_ARGS
            args = kTestArgs;
#endif
            //return;

            List <string> extra;
            if (!TryParse(Environment.None, mOptions, args, out extra) || mArgEnv == Environment.None)
            {
                mArgShowHelp = true;
            }

            if (mArgShowHelp)
            {
                ShowHelp(Environment.None, mOptions);
            }
            else
            {
                switch (mArgEnv)
                {
                case Environment.Blam:
                    ProgramBlam._Main(extra);
                    break;

                default:
                    UnavailableOption(mArgEnv);
                    break;
                }
            }
        }
Пример #2
0
        public static void _Main(List <string> args)
        {
            KSoft.Blam.Program.Initialize();
            KSoft.Blam.Program.InitializeCoreSystems();

            var prog = new ProgramBlam();

            prog.MainImpl(args);

            KSoft.Blam.Program.DisposeCoreSystems();
            KSoft.Blam.Program.Dispose();
        }