| 411 | } |
| 412 | |
| 413 | static command_result do_command(color_ostream &out, vector<string> ¶meters) { |
| 414 | bool show_help = false; |
| 415 | if (!Lua::CallLuaModuleFunction(out, "plugins.spectate", "parse_commandline", std::make_tuple(parameters), |
| 416 | 1, [&](lua_State *L) { |
| 417 | show_help = !lua_toboolean(L, -1); |
| 418 | })) { |
| 419 | return CR_FAILURE; |
| 420 | } |
| 421 | |
| 422 | return show_help ? CR_WRONG_USAGE : CR_OK; |
| 423 | } |
| 424 | |
| 425 | ///////////////////////////////////////////////////// |
| 426 | // cycle logic |
nothing calls this directly
no test coverage detected