diff options
| author | Maxime Coste <mawww@kakoune.org> | 2017-03-16 09:57:39 +0000 |
|---|---|---|
| committer | Maxime Coste <mawww@kakoune.org> | 2017-03-16 09:57:39 +0000 |
| commit | 5f7464d90d0bfe641dd2c7bbbca6e78d92d9d818 (patch) | |
| tree | 2f83259b53104545893c7e59f7a96d04e037278e /src/commands.cc | |
| parent | 7eaa05845043420c8f8c58932667b71b6784714a (diff) | |
Try to clean up option include a bit
Diffstat (limited to 'src/commands.cc')
| -rw-r--r-- | src/commands.cc | 1 |
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 = ®.declare_option<int>(parser[1], docstring, 0, flags); else if (parser[0] == "bool") |
