Exemple #1
0
 public void AddPatternSet(PatternSet patternSet)
 {
     Includes.AddRange(patternSet.GetIncludePatterns());
     Excludes.AddRange(patternSet.GetExcludePatterns());
 }
 /// <summary>
 /// Add excluded options from property's <see cref="CommandLinePropertyAttributeAttribute"/> attribute.
 /// </summary>
 /// <param name="parser">The command line parser.</param>
 /// <exception cref="PropertyReferenceException">
 /// <paramref name="attribute"/> specifies an invalid option reference in either
 /// <see cref="CommandLinePropertyAttribute.Excludes"/> or
 /// <see cref="CommandLinePropertyAttribute.Requires"/>.
 /// </exception>
 internal void AddExcludes(CommandLineParser parser) =>
 Excludes.AddRange(GetOptions(parser, attribute.Excludes, true)
                   .OrderBy(option => option));