Skip to content

M_CommandLine_Text_HelpText_RenderParsingErrorsText__1

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

HelpText.RenderParsingErrorsText(T) Method

Builds a string that contains a parsing error message.

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

Syntax

C#

public static string RenderParsingErrorsText<T>(
	ParserResult<T> parserResult,
	Func<Error, string> formatError,
	Func<IEnumerable<MutuallyExclusiveSetError>, string> formatMutuallyExclusiveSetErrors,
	int indent
)

VB

Public Shared Function RenderParsingErrorsText(Of T) ( 
	parserResult As ParserResult(Of T),
	formatError As Func(Of Error, String),
	formatMutuallyExclusiveSetErrors As Func(Of IEnumerable(Of MutuallyExclusiveSetError), String),
	indent As Integer
) As String

C++

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

F#

static member RenderParsingErrorsText : 
        parserResult : ParserResult<'T> * 
        formatError : Func<Error, string> * 
        formatMutuallyExclusiveSetErrors : Func<IEnumerable<MutuallyExclusiveSetError>, string> * 
        indent : int -> 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: String
The String that contains the parsing error message.

See Also

Reference

HelpText Class
CommandLine.Text Namespace

Clone this wiki locally