decl command support bool type options

This commit is contained in:
Maxime Coste 2013-07-24 22:56:21 +02:00
parent 38c7197770
commit 3da97c4269

View File

@ -518,6 +518,8 @@ void declare_option(const CommandParameters& params, Context& context)
if (params[0] == "int")
opt = &GlobalOptions::instance().declare_option<int>(params[1], 0);
if (params[0] == "bool")
opt = &GlobalOptions::instance().declare_option<bool>(params[1], 0);
else if (params[0] == "str")
opt = &GlobalOptions::instance().declare_option<String>(params[1], "");
else if (params[0] == "regex")