public CompareOption(CommandArgs args)
 {
     foreach (string param in args.Params)
     {
         if (param.EndsWith(OptionString.CTTM))
         {
             CttmPath = param;
         }
         else if (param.EndsWith(OptionString.CTTR))
         {
             CttrPath = param;
         }
         else if (param.EndsWith(OptionString.CTTD))
         {
             OutCttdPath = param;
         }
     }
 }
 public GenerateCttmOption(CommandArgs args)
 {
     foreach (string param in args.Params)
     {
         if (param.EndsWith(OptionString.EM))
         {
             MetadataFile = param;
         }
         else if (param.EndsWith(OptionString.CTTM))
         {
             CttmOutputPath = param;
         }
         else
         {
             SourceFileRootPath = param;
         }
     }
 }
 public static CommandArgs Parse(string[] args)
 {
     char[] kArgStart = new char[] { '-', '\\', '"' };
     char[] kArgEnd = new char[] { ' ', '"' };
     CommandArgs ca = new CommandArgs();
     foreach (string arg in args)
     {
         if (IsOption(arg))
         {
             ca.CommandOption = arg.TrimStart(kArgStart).TrimEnd(kArgEnd);
         }
         else
         {
             ca.Params.Add(arg.TrimStart(kArgStart).TrimEnd(kArgEnd));
         }
     }
     return ca;
 }
 public GenerateCttrOption(CommandArgs args)
 {
     foreach (string param in args.Params)
     {
         if (param.EndsWith(OptionString.EM))
         {
             MetadataFile = param;
         }
         else if (param.EndsWith(OptionString.XML))
         {
             XmlSerializer serializer = new XmlSerializer(typeof(CttCaseCollection));
             CoverageFilePaths = serializer.Deserialize(File.OpenRead(param)) as CttCaseCollection;
         }
         else if (param.EndsWith(OptionString.CTTR))
         {
             CttrOutputPath = param;
         }
         else
         {
             SourceFileRootPath = param;
         }
     }
 }
 public CheckCoverageOption(CommandArgs args)
 {
 }