@ -1197,7 +1197,11 @@ command_result Core::runCommand(color_ostream &con, const std::string &first_, v
else
{
res = plug_mgr->InvokeCommand(con, first, parts);
if(res == CR_NOT_IMPLEMENTED)
if (res == CR_WRONG_USAGE)
help_helper(con, first);
}
else if (res == CR_NOT_IMPLEMENTED)
string completed;
string filename = findScript(first + ".lua");
@ -503,8 +503,6 @@ command_result Plugin::invoke(color_ostream &out, const std::string & command, s
cr = cmd.function(out, parameters);
if (cr == CR_WRONG_USAGE && !cmd.usage.empty())
out << "Usage:\n" << cmd.usage << flush;
break;