Skip to content

M_CommandLine_Core_InstanceChooser_MatchVerb

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

InstanceChooser.MatchVerb Method

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

Syntax

C#

private static ParserResult<Object> MatchVerb(
	Func<IEnumerable<string>, IEnumerable<OptionSpecification>, Result<IEnumerable<Token>, Error>> tokenizer,
	IEnumerable<Tuple<Verb, Type>> verbs,
	IEnumerable<string> arguments,
	StringComparer nameComparer,
	bool ignoreValueCase,
	CultureInfo parsingCulture,
	bool autoHelp,
	bool autoVersion,
	IEnumerable<ErrorType> nonFatalErrors
)

VB

Private Shared Function MatchVerb ( 
	tokenizer As Func(Of IEnumerable(Of String), IEnumerable(Of OptionSpecification), Result(Of IEnumerable(Of Token), Error)),
	verbs As IEnumerable(Of Tuple(Of Verb, Type)),
	arguments As IEnumerable(Of String),
	nameComparer As StringComparer,
	ignoreValueCase As Boolean,
	parsingCulture As CultureInfo,
	autoHelp As Boolean,
	autoVersion As Boolean,
	nonFatalErrors As IEnumerable(Of ErrorType)
) As ParserResult(Of Object)

C++

private:
static ParserResult<Object^>^ MatchVerb(
	Func<IEnumerable<String^>^, IEnumerable<OptionSpecification^>^, Result<IEnumerable<Token^>^, Error^>^>^ tokenizer, 
	IEnumerable<Tuple<Verb^, Type^>^>^ verbs, 
	IEnumerable<String^>^ arguments, 
	StringComparer^ nameComparer, 
	bool ignoreValueCase, 
	CultureInfo^ parsingCulture, 
	bool autoHelp, 
	bool autoVersion, 
	IEnumerable<ErrorType>^ nonFatalErrors
)

F#

private static member MatchVerb : 
        tokenizer : Func<IEnumerable<string>, IEnumerable<OptionSpecification>, Result<IEnumerable<Token>, Error>> * 
        verbs : IEnumerable<Tuple<Verb, Type>> * 
        arguments : IEnumerable<string> * 
        nameComparer : StringComparer * 
        ignoreValueCase : bool * 
        parsingCulture : CultureInfo * 
        autoHelp : bool * 
        autoVersion : bool * 
        nonFatalErrors : IEnumerable<ErrorType> -> ParserResult<Object> 

Parameters

 

tokenizer
Type: System.Func(IEnumerable(String), IEnumerable(OptionSpecification), Result(IEnumerable(Token), Error))
verbs
Type: System.Collections.Generic.IEnumerable(Tuple(Verb, Type))
arguments
Type: System.Collections.Generic.IEnumerable(String)
nameComparer
Type: System.StringComparer
ignoreValueCase
Type: System.Boolean
parsingCulture
Type: System.Globalization.CultureInfo
autoHelp
Type: System.Boolean
autoVersion
Type: System.Boolean
nonFatalErrors
Type: System.Collections.Generic.IEnumerable(ErrorType)

Return Value

Type: ParserResult(Object)

See Also

Reference

InstanceChooser Class
CommandLine.Core Namespace

Clone this wiki locally