mirror of
				https://github.com/nsnail/spectre.console.git
				synced 2025-10-31 09:09:25 +08:00 
			
		
		
		
	Falls back to null for settings constructor
This commit is contained in:
		 Phil Scott
					Phil Scott
				
			
				
					committed by
					
						 Patrik Svensson
						Patrik Svensson
					
				
			
			
				
	
			
			
			 Patrik Svensson
						Patrik Svensson
					
				
			
						parent
						
							be45a0ff4e
						
					
				
				
					commit
					4edc647fdd
				
			| @@ -44,6 +44,11 @@ namespace Spectre.Console.Cli | ||||
|                             binder.Bind(parameter, resolver, value); | ||||
|                             CommandValidator.ValidateParameter(parameter, lookup); | ||||
|                         } | ||||
|                         else if (Nullable.GetUnderlyingType(parameter.ParameterType) != null || | ||||
|                                  !parameter.ParameterType.IsValueType) | ||||
|                         { | ||||
|                             lookup.SetValue(parameter, null); | ||||
|                         } | ||||
|                     } | ||||
|                 } | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user