0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-29 02:02:38 +01:00

construct: Use static named options argument to console command.

This commit is contained in:
Jason Volk 2018-03-28 14:20:28 -07:00
parent b938669ba3
commit 549452d7fc

View file

@ -292,7 +292,8 @@ handle_line_bymodule(const string_view &line)
std::ostringstream ss;
pubsetbuf(ss, buf);
int ret;
switch((ret = command(ss, line, {})))
static const string_view opts;
switch((ret = command(ss, line, opts)))
{
case 0:
case 1: