From 3da97c4269b35b0b9423b297d84d5438f134895c Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Wed, 24 Jul 2013 22:56:21 +0200 Subject: [PATCH] decl command support bool type options --- src/commands.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/commands.cc b/src/commands.cc index 4e62a65f..82d0cbc3 100644 --- a/src/commands.cc +++ b/src/commands.cc @@ -518,6 +518,8 @@ void declare_option(const CommandParameters& params, Context& context) if (params[0] == "int") opt = &GlobalOptions::instance().declare_option(params[1], 0); + if (params[0] == "bool") + opt = &GlobalOptions::instance().declare_option(params[1], 0); else if (params[0] == "str") opt = &GlobalOptions::instance().declare_option(params[1], ""); else if (params[0] == "regex")