69 if (arguments.size() == 1) {
70 string result =
"Commands available:\n";
72 for (
size_t i = 0; i < names.size(); i++) {
73 result += names[i] +
" ";
80 if (arguments.size() != 2) {
81 obj->
setString(
"Wrong number of arguments");
86 string cmdName = arguments[1].stringValue();
88 if (command == NULL) {
89 obj->
setString(
"Unknown command: " + cmdName);
106 return "Use help command to get help";