public bool ProcessOptions()

in scbuild/scbuild.cs [703:769]


    public bool ProcessOptions( string [] args )
    {
        for( int i=0; i<args.Length; i++ )
        {
            string opt = args[i].ToLower();

            m_argumentsString = m_argumentsString + " " + opt;

            if (opt == "-r")
            {
                m_option_release = true;
            }

            else if (opt == "-t")
            {
                m_option_test = true;
                ProcessOptions(new string[] { "-i", });
            }

            else if (opt.StartsWith("-i"))
            {
                if (opt.Length == 2)
                {
                    ProcessOptions(new string[] { "-is", });
                }
                else
                {
                    for (int j = 2; j < opt.Length; j++)
                    {
                        switch (opt[j])
                        {
                            case 's': m_option_ignore_sync = true; break;
                            // case 'w': m_option_ignore_writable = true; break;
                            default: Fatal("Unknown ignore letter {0} in option {1}", opt[j], opt); break;
                        }
                    }
                }
            }
            else if (opt.StartsWith("-f"))
            {
                string[] fls = opt.Substring(2, opt.Length - 2).Split(new Char[] { ',' });
                foreach (string fl in fls)
                {
                    if (Array.IndexOf(m_all_flavors, fl) < 0)
                    {
                        Fatal("Unrecognized flavor '{0}' in option '{1}'", fl, opt);
                    }
                }
                m_option_flavors = fls;
            }
            else if (opt == "-version" )
            {
                m_option_inc_version = true;
            }
            else if (opt == "-notag" )
            {
                m_option_no_tag = true;
            }
            else
            {
                Usage();
                return false;
            }
        }

        return true;
    }