updated docs, execcommand multiple words

This commit is contained in:
2020-09-25 19:24:26 +02:00
parent 30f4c80031
commit 603ddb0d75
8 changed files with 608 additions and 6 deletions

View File

@ -2680,10 +2680,11 @@ std::string CmdProxy::ExecuteCommand(int action) {
} else if (action == defs::GET_ACTION) {
throw sls::RuntimeError("Cannot get.");
} else if (action == defs::PUT_ACTION) {
if (args.size() != 1) {
WrongNumberOfParameters(1);
std::string command;
for (auto &i: args) {
command += (i + ' ');
}
auto t = det->executeCommand(args[0], std::vector<int>{det_id});
auto t = det->executeCommand(command, std::vector<int>{det_id});
os << OutString(t) << '\n';
} else {
throw sls::RuntimeError("Unknown action");