internal static string GetOption(string name, string def)
        {
            string result = def;

            string[] commandLineArgs = Environment.GetCommandLineArgs();
            for (int i = 1; i < commandLineArgs.Length; i++)
            {
                HtmlCmdLine.GetStringArg(commandLineArgs[i], name, ref result);
            }
            return(result);
        }
        internal static string GetOption(int index, string def)
        {
            string result = def;

            string[] commandLineArgs = Environment.GetCommandLineArgs();
            int      num             = 0;

            for (int i = 1; i < commandLineArgs.Length; i++)
            {
                if (HtmlCmdLine.GetStringArg(commandLineArgs[i], ref result))
                {
                    if (index == num)
                    {
                        return(result);
                    }
                    result = def;
                    num++;
                }
            }
            return(result);
        }