Ejemplo n.º 1
0
 private static void ParseArgs()
 {
     string[] commandLineArgs = Environment.GetCommandLineArgs();
     for (int i = 1; i < commandLineArgs.Length; i++)
     {
         HtmlCmdLine.GetBoolArg(commandLineArgs[i], "?", ref HtmlCmdLine.Help);
         HtmlCmdLine.GetBoolArg(commandLineArgs[i], "h", ref HtmlCmdLine.Help);
         HtmlCmdLine.GetBoolArg(commandLineArgs[i], "help", ref HtmlCmdLine.Help);
     }
 }
Ejemplo n.º 2
0
        internal static bool GetOption(string name, bool def)
        {
            bool result = def;

            string[] commandLineArgs = Environment.GetCommandLineArgs();
            for (int i = 1; i < commandLineArgs.Length; i++)
            {
                HtmlCmdLine.GetBoolArg(commandLineArgs[i], name, ref result);
            }
            return(result);
        }