mirror of
				https://github.com/nsnail/spectre.console.git
				synced 2025-10-31 09:09:25 +08:00 
			
		
		
		
	Marks nullable bools as flags too
This commit is contained in:
		 Phil Scott
					Phil Scott
				
			
				
					committed by
					
						 Patrik Svensson
						Patrik Svensson
					
				
			
			
				
	
			
			
			 Patrik Svensson
						Patrik Svensson
					
				
			
						parent
						
							759b16aed9
						
					
				
				
					commit
					a690ce4955
				
			| @@ -233,7 +233,7 @@ namespace Spectre.Console.Cli | ||||
|  | ||||
|         private static ParameterKind GetParameterKind(Type type) | ||||
|         { | ||||
|             if (type == typeof(bool)) | ||||
|             if (type == typeof(bool) || type == typeof(bool?)) | ||||
|             { | ||||
|                 return ParameterKind.Flag; | ||||
|             } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user