public static string GetSwitch(string strName, string strDefault)
        {
            CommandLine.Initalize();
            string str = "";

            if (!CommandLine.switches.TryGetValue(strName, out str))
            {
                return(strDefault);
            }
            return(str);
        }
        public static int GetSwitchInt(string strName, int iDefault)
        {
            CommandLine.Initalize();
            string str = "";

            if (!CommandLine.switches.TryGetValue(strName, out str))
            {
                return(iDefault);
            }
            int num = iDefault;

            if (!int.TryParse(str, out num))
            {
                return(iDefault);
            }
            return(num);
        }
 public static bool HasSwitch(string strName)
 {
     CommandLine.Initalize();
     return(CommandLine.switches.ContainsKey(strName));
 }
 public static Dictionary <string, string> GetSwitches()
 {
     CommandLine.Initalize();
     return(CommandLine.switches);
 }