code: function queryGruntTask() {
          var target = isDebug() ? 'debug' : 'release';
  
          for (var i = 0, n = _supportCommand.length; i < n; i++) {
              if (null != _cmdline.match(_supportCommand[i].regexp)) {
                  return _supportCommand[i].prefix + (_supportCommand[i].no_target ? "" : target);
              }
          }
          return null;
      }
docs: check command line Judge the grunt task "cordova_build_(debug/release)" or "cordova_prepare:(debug/release)".
  return the task string