mirror of
https://github.com/nsnail/spectre.console.git
synced 2025-11-06 19:30:49 +08:00
(#916) fixed missing call to Validate when using CommandConstructorBinder
This commit is contained in:
committed by
Patrik Svensson
parent
78d841e3dc
commit
0d19ccd8a6
@@ -45,6 +45,13 @@ internal static class CommandConstructorBinder
|
||||
}
|
||||
}
|
||||
|
||||
// Validate the settings.
|
||||
var validationResult = settings.Validate();
|
||||
if (!validationResult.Successful)
|
||||
{
|
||||
throw CommandRuntimeException.ValidationFailed(validationResult);
|
||||
}
|
||||
|
||||
return settings;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user