equal
deleted
inserted
replaced
335 commands = getMatchingCommands(commandName); |
335 commands = getMatchingCommands(commandName); |
336 |
336 |
337 if (commands.size()) { |
337 if (commands.size()) { |
338 if (commands.size() == 1) { |
338 if (commands.size() == 1) { |
339 cmd = commands.front(); |
339 cmd = commands.front(); |
|
340 commandName = cmd->name; |
340 if (!helpRequested) { |
341 if (!helpRequested) { |
341 masterDev.setIndex(masterIndex); |
342 masterDev.setIndex(masterIndex); |
342 retval = cmd->execute(); |
343 retval = cmd->execute(); |
343 } else { |
344 } else { |
344 cmd->displayHelp(); |
345 cmd->displayHelp(); |