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);