summaryrefslogtreecommitdiff
path: root/src/commands.cc
diff options
context:
space:
mode:
authorMaxime Coste <mawww@kakoune.org>2017-03-16 09:57:39 +0000
committerMaxime Coste <mawww@kakoune.org>2017-03-16 09:57:39 +0000
commit5f7464d90d0bfe641dd2c7bbbca6e78d92d9d818 (patch)
tree2f83259b53104545893c7e59f7a96d04e037278e /src/commands.cc
parent7eaa05845043420c8f8c58932667b71b6784714a (diff)
Try to clean up option include a bit
Diffstat (limited to 'src/commands.cc')
-rw-r--r--src/commands.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/commands.cc b/src/commands.cc
index a57e8031..ec8cd6ca 100644
--- a/src/commands.cc
+++ b/src/commands.cc
@@ -1339,6 +1339,7 @@ const CommandDesc declare_option_cmd = {
auto docstring = parser.get_switch("docstring").value_or(StringView{}).str();
OptionsRegistry& reg = GlobalScope::instance().option_registry();
+
if (parser[0] == "int")
opt = &reg.declare_option<int>(parser[1], docstring, 0, flags);
else if (parser[0] == "bool")