/// <summary> /// Initialises a new instance of the <see cref="CommandLineOptionValidator"/> class. /// </summary> public CommandLineOptionValidator(ICommandLineOptionContainer container, SpecialCharacters specialCharacters) { _rules = new List <ICommandLineOptionValidator> { new OptionNameValidator(specialCharacters), new NoDuplicateOptionValidator(container) }; }
/// <summary> /// Initialises a new instance of the <see cref="NoDuplicateOptionValidator"/> class. /// </summary> /// <param name="container">The <see cref="IFluentCommandLineParser"/> containing the setup options. This must not be null.</param> public NoDuplicateOptionValidator(ICommandLineOptionContainer container) { if (container == null) { throw new ArgumentNullException("container"); } _container = container; }