mirror of
https://github.com/nsnail/spectre.console.git
synced 2025-04-24 04:02:50 +08:00
Marks nullable bools as flags too
This commit is contained in:
parent
759b16aed9
commit
a690ce4955
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user