protected static void EnsureOptionAttributeIsArrayCompatible(OptionInfo option) { if (!option.IsAttributeArrayCompatible) { throw new ParserException(); } }
protected void DefineOptionThatViolatesFormat(OptionInfo option) { this.PostParsingState.Add(new ParsingError(option.ShortName, option.LongName, true)); }
protected static void EnsureOptionArrayAttributeIsNotBoundToScalar(OptionInfo option) { if (!option.IsArray && option.IsAttributeArrayCompatible) { throw new ParserException(); } }