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); } }
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); } }