Marks nullable bools as flags too

This commit is contained in:
Phil Scott 2021-04-05 10:01:34 -04:00 committed by Patrik Svensson
parent 759b16aed9
commit a690ce4955

View File

@ -233,7 +233,7 @@ namespace Spectre.Console.Cli
private static ParameterKind GetParameterKind(Type type) private static ParameterKind GetParameterKind(Type type)
{ {
if (type == typeof(bool)) if (type == typeof(bool) || type == typeof(bool?))
{ {
return ParameterKind.Flag; return ParameterKind.Flag;
} }