fix commands boolean type support
This commit is contained in:
parent
8e00e73b8e
commit
a50cb109c8
@ -252,7 +252,7 @@ public:
|
||||
case ArgType::integer:
|
||||
return typeCheck(arg, dv::value_type::integer, value, "integer");
|
||||
case ArgType::boolean:
|
||||
if (!arg->optional) {
|
||||
if (!arg->optional && !value.isBoolean()) {
|
||||
throw typeError(arg->name, "boolean", value);
|
||||
}
|
||||
return value.isBoolean();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user