diff --git a/src/commands.cc b/src/commands.cc index b8c33dce..f2925c5d 100644 --- a/src/commands.cc +++ b/src/commands.cc @@ -492,6 +492,8 @@ void declare_option(const CommandParameters& params, Context& context) 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") + opt = &GlobalOptions::instance().declare_option(params[1], Regex{}); else if (params[0] == "int-list") opt = &GlobalOptions::instance().declare_option>(params[1], {}); else if (params[0] == "str-list")