Beispiel #1
0
 private void AddRenameRule(Renamer renamer, string rule)
 {
     try
     {
         renamer.AddRule(RenameRule.Parse(rule));
     }
     catch (ArgumentException ae)
     {
         throw new CommandLineArgsException("Invalid rename rule: {0}", ae.Message);
     }
 }
Beispiel #2
0
        public void ParseCommandLineSwitches(params string[] args)
        {
            m_switches.Parse(args);

            try
            {
                if (m_switches.BranchpointRule != null)
                {
                    BranchpointRule = RenameRule.Parse(m_switches.BranchpointRule);
                }
            }
            catch (ArgumentException ae)
            {
                throw new CommandLineArgsException("Invalid branchpoint rule: {0}", ae.Message);
            }
        }