mirror of
https://github.com/nsnail/spectre.console.git
synced 2025-06-19 13:28:16 +08:00
Marks nullable bools as flags too
This commit is contained in:

committed by
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