src/cppacker/CommandLine.types.cs
/// <summary>
/// Writes any option validation messages to given TextWriter (usually Console.Error/stderr).
/// Returns true if any error messages written out.
/// </summary>
/// <param name="writer"></param>
/// <returns></returns>
Writes any option validation messages to given TextWriter (usually Console.Error/stderr).
Returns true if any error messages written out.
Writes any option validation messages to given TextWriter ( usually Console . Error / stderr ) . Returns true if any error messages written out .
public OptionsValidation WriteWhenNotValid(System.IO.TextWriter writer)
		{
			if(IsValid == true) return this;
			var messages = GetMessages();
			if(messages.Count() > 0)
			{
				foreach(var message in messages)
				{
					writer.WriteLine(message);
				}
			}
			return this;
		}
public OptionsValidation WriteWhenNotValid ( System . IO . TextWriter writer ) { if ( IsValid == true ) return this ; var messages = GetMessages ( ) ; if ( messages . Count ( ) > 0 ) { foreach ( var message in messages ) { writer . WriteLine ( message ) ; } } return this ; }
Writes any option validation messages to given TextWriter (usually Console.Error/stderr).
Writes any option validation messages to given TextWriter ( usually Console . Error / stderr ) .
None
writer
System.IO.TextWriter
None