Single method compilation mode broke with the change to use System.CommandLine. "Not specified" no longer means `null`.
if (method == null)
throw new CommandLineException($"Method '{singleMethodName}' not found in '{singleMethodTypeName}'");
- if (method.HasInstantiation != (singleMethodGenericArgs != null) ||
- (method.HasInstantiation && (method.Instantiation.Length != singleMethodGenericArgs.Length)))
+ if (method.Instantiation.Length != singleMethodGenericArgs.Length)
{
throw new CommandLineException(
$"Expected {method.Instantiation.Length} generic arguments for method '{singleMethodName}' on type '{singleMethodTypeName}'");