-
Notifications
You must be signed in to change notification settings - Fork 401
Replace | with or when searching for Argument value #1053
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 3 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,7 +36,7 @@ internal static bool TryGetValueForArgument( | |
{ | ||
foreach (var argument in commandResult.Command.Arguments) | ||
{ | ||
if (valueName.IsMatch(argument.Name)) | ||
if (valueName.IsMatch(argument.Name) || valueName.IsMatch(argument.Name.Replace("|","or"))) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This change should maybe be moved to the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Done. I had considered not doing to before to allow the or with and without the replacement. After realising that a |
||
{ | ||
value = commandResult.ArgumentConversionResults[argument.Name]?.GetValueOrDefault(); | ||
return true; | ||
|
@@ -84,4 +84,4 @@ internal static bool TryGetValueForOption( | |
return false; | ||
} | ||
} | ||
} | ||
} |
Uh oh!
There was an error while loading. Please reload this page.