@@ -17,6 +17,7 @@ public static ParserResult<object> Choose(
17
17
IEnumerable < Type > types ,
18
18
IEnumerable < string > arguments ,
19
19
StringComparer nameComparer ,
20
+ bool ignoreValueCase ,
20
21
CultureInfo parsingCulture ,
21
22
IEnumerable < ErrorType > nonFatalErrors )
22
23
{
@@ -36,7 +37,7 @@ public static ParserResult<object> Choose(
36
37
arguments . Skip ( 1 ) . FirstOrDefault ( ) ?? string . Empty , nameComparer ) )
37
38
: preprocCompare ( "version" )
38
39
? MakeNotParsed ( types , new VersionRequestedError ( ) )
39
- : MatchVerb ( tokenizer , verbs , arguments , nameComparer , parsingCulture , nonFatalErrors ) ;
40
+ : MatchVerb ( tokenizer , verbs , arguments , nameComparer , ignoreValueCase , parsingCulture , nonFatalErrors ) ;
40
41
} ;
41
42
42
43
return arguments . Any ( )
@@ -49,6 +50,7 @@ private static ParserResult<object> MatchVerb(
49
50
IEnumerable < Tuple < Verb , Type > > verbs ,
50
51
IEnumerable < string > arguments ,
51
52
StringComparer nameComparer ,
53
+ bool ignoreValueCase ,
52
54
CultureInfo parsingCulture ,
53
55
IEnumerable < ErrorType > nonFatalErrors )
54
56
{
@@ -60,7 +62,7 @@ private static ParserResult<object> MatchVerb(
60
62
tokenizer ,
61
63
arguments . Skip ( 1 ) ,
62
64
nameComparer ,
63
- false ,
65
+ ignoreValueCase ,
64
66
parsingCulture ,
65
67
nonFatalErrors )
66
68
: MakeNotParsed ( verbs . Select ( v => v . Item2 ) , new BadVerbSelectedError ( arguments . First ( ) ) ) ;
0 commit comments