File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,8 @@ internal static class Binder
9
9
{
10
10
internal static bool IsMatch ( this string parameterName , string alias ) =>
11
11
string . Equals ( alias ? . RemovePrefix ( )
12
- . Replace ( "-" , "" ) ,
12
+ . Replace ( "-" , "" )
13
+ . Replace ( "|" , "or" ) ,
13
14
parameterName ,
14
15
StringComparison . OrdinalIgnoreCase ) ;
15
16
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ internal static bool TryGetValueForArgument(
36
36
{
37
37
foreach ( var argument in commandResult . Command . Arguments )
38
38
{
39
- if ( valueName . IsMatch ( argument . Name ) || valueName . IsMatch ( argument . Name . Replace ( "|" , "or" ) ) )
39
+ if ( valueName . IsMatch ( argument . Name ) )
40
40
{
41
41
value = commandResult . ArgumentConversionResults [ argument . Name ] ? . GetValueOrDefault ( ) ;
42
42
return true ;
You can’t perform that action at this time.
0 commit comments