From 374f97a5923de8f490e856e99517d5968f7eb13a Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Mon, 14 Apr 2014 19:01:00 +0100 Subject: [PATCH] fix exception being thrown in error in decl command --- src/commands.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands.cc b/src/commands.cc index b31f9867..f5ed63ff 100644 --- a/src/commands.cc +++ b/src/commands.cc @@ -854,7 +854,7 @@ const CommandDesc declare_option_cmd = { if (parser[0] == "int") opt = &opts.declare_option(parser[1], docstring, 0, flags); - if (parser[0] == "bool") + else if (parser[0] == "bool") opt = &opts.declare_option(parser[1], docstring, 0, flags); else if (parser[0] == "str") opt = &opts.declare_option(parser[1], docstring, "", flags);