File tree Expand file tree Collapse file tree 1 file changed +10
-8
lines changed
Expand file tree Collapse file tree 1 file changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -540,18 +540,20 @@ foreach ($potentialCommand in $potentialCommands) {
540540 # Walk over each potential parameter in the command
541541 foreach ($potentialParameter in $potentialParameters.Values) {
542542 $parameterFound = $(
543+ # otherwise, we have to check each alias.
544+ :nextAlias foreach ($potentialAlias in $potentialParameter.Aliases) {
545+ if ($potentialBarewordList -contains $potentialAlias) {
546+ $potentialParameterName = $potentialAlias
547+ $true
548+ break
549+ }
550+ }
551+
543552 # If the parameter name matches,
544553 if ($potentialBarewordList -contains $potentialParameter.Name) {
545554 $true # we've found it,
546555 } else {
547- # otherwise, we have to check each alias.
548- :nextAlias foreach ($potentialAlias in $potentialParameter.Aliases) {
549- if ($potentialBarewordList -contains $potentialAlias) {
550- $potentialParameterName = $potentialAlias
551- $true
552- break
553- }
554- }
556+
555557 }
556558 )
557559
You can’t perform that action at this time.
0 commit comments