Example #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)
                {
#if false
                case Environment.Perf:
                    ProgramPerf._Main(extra);
                    break;
#endif

                case Environment.Phx:
                    ProgramPhx._Main(extra);
                    break;

                default:
                    UnavailableOption(mArgEnv);
                    break;
                }
            }
        }
        public static void _Main(List <string> args)
        {
            var prog = new ProgramPhx();

            prog.MainImpl(args);
        }