tool/main.cpp
changeset 1129 4bc1d9f9d73c
parent 1128 b69b2c850160
child 1134 3356141fa2f8
equal deleted inserted replaced
1128:b69b2c850160 1129:4bc1d9f9d73c
   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();