Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1777,6 +1777,12 @@ private Collection<MergedCompiledCommandParameter> GetMissingMandatoryParameters
continue;
}

// If the parameter is not in any of the current parameter sets, no parameter set data can match.
if ((parameter.Parameter.ParameterSetFlags & _currentParameterSetFlag) == 0 && !parameter.Parameter.IsInAllSets)
{
continue;
}

var matchingParameterSetMetadata = parameter.Parameter.GetMatchingParameterSetData(_currentParameterSetFlag);

uint parameterMandatorySets = 0;
Expand Down