mirror of
				https://github.com/nsnail/spectre.console.git
				synced 2025-11-01 01:25:27 +08:00 
			
		
		
		
	(#916) fixed missing call to Validate when using CommandConstructorBinder
This commit is contained in:
		 Nils Andresen
					Nils Andresen
				
			
				
					committed by
					
						 Patrik Svensson
						Patrik Svensson
					
				
			
			
				
	
			
			
			 Patrik Svensson
						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