Skip to content

M_CommandLine_Text_HelpText_RenderParsingErrorsTextAsLines__1

Moh.Hassan edited this page Oct 10, 2019 · 1 revision

HelpText.RenderParsingErrorsTextAsLines(T) Method

Builds a sequence of string that contains a parsing error message.

Namespace:CommandLine.Text
Assembly: CommandLine (in CommandLine.dll) Version: 0.0.0

Syntax

C#

publicstaticIEnumerable<string>RenderParsingErrorsTextAsLines<T>(ParserResult<T>parserResult,Func<Error,string>formatError,Func<IEnumerable<MutuallyExclusiveSetError>,string>formatMutuallyExclusiveSetErrors,intindent)

VB

PublicSharedFunctionRenderParsingErrorsTextAsLines(OfT)(parserResultAsParserResult(OfT),formatErrorAsFunc(OfError,String),formatMutuallyExclusiveSetErrorsAsFunc(OfIEnumerable(OfMutuallyExclusiveSetError),String),indentAsInteger)AsIEnumerable(OfString)

C++

public: generic<typename T> static IEnumerable<String^>^ RenderParsingErrorsTextAsLines( ParserResult<T>^ parserResult, Func<Error^, String^>^ formatError, Func<IEnumerable<MutuallyExclusiveSetError^>^, String^>^ formatMutuallyExclusiveSetErrors, int indent )

F#

static memberRenderParsingErrorsTextAsLines:parserResult :ParserResult<'T>* formatError : Func<Error, string>* formatMutuallyExclusiveSetErrors : Func<IEnumerable<MutuallyExclusiveSetError>, string>* indent : int -> IEnumerable<string>

Parameters

parserResult
Type: CommandLine.ParserResult(T)
The ParserResult(T) containing the instance that collected command line arguments parsed with Parser class.
formatError
Type: System.Func(Error, String)
The error formatting delegate.
formatMutuallyExclusiveSetErrors
Type: System.Func(IEnumerable(MutuallyExclusiveSetError), String)
The specialized MutuallyExclusiveSetError sequence formatting delegate.
indent
Type: System.Int32
Number of spaces used to indent text.

Type Parameters

T

Return Value

Type: IEnumerable(String)
A sequence of String that contains the parsing error message.

See Also

Reference

HelpText Class
CommandLine.Text Namespace

Clone this wiki locally