permit do declare regex option
This commit is contained in:
parent
4ec9c4c32a
commit
996e5999ed
|
@ -492,6 +492,8 @@ void declare_option(const CommandParameters& params, Context& context)
|
||||||
opt = &GlobalOptions::instance().declare_option<int>(params[1], 0);
|
opt = &GlobalOptions::instance().declare_option<int>(params[1], 0);
|
||||||
else if (params[0] == "str")
|
else if (params[0] == "str")
|
||||||
opt = &GlobalOptions::instance().declare_option<String>(params[1], "");
|
opt = &GlobalOptions::instance().declare_option<String>(params[1], "");
|
||||||
|
else if (params[0] == "regex")
|
||||||
|
opt = &GlobalOptions::instance().declare_option<Regex>(params[1], Regex{});
|
||||||
else if (params[0] == "int-list")
|
else if (params[0] == "int-list")
|
||||||
opt = &GlobalOptions::instance().declare_option<std::vector<int>>(params[1], {});
|
opt = &GlobalOptions::instance().declare_option<std::vector<int>>(params[1], {});
|
||||||
else if (params[0] == "str-list")
|
else if (params[0] == "str-list")
|
||||||
|
|
Loading…
Reference in New Issue
Block a user