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#

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

VB

PublicSharedFunctionRenderParsingErrorsText(OfT)(parserResultAsParserResult(OfT),formatErrorAsFunc(OfError,String),formatMutuallyExclusiveSetErrorsAsFunc(OfIEnumerable(OfMutuallyExclusiveSetError),String),indentAsInteger)AsString

C++

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

F#

static memberRenderParsingErrorsText: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