docs: function ensurePlatformOptionsCompatible (platformOptions) {
      var opts = platformOptions || {};
  
      if (!Array.isArray(opts))
          return opts;
  
      events.emit('warn', 'The format of cordova.raw.* methods "options" argument was changed in 5.4.0. ' +
          '"options.options" property now should be an object instead of an array of plain strings. Though the old format ' +
          'is still supported, consider updating your cordova.raw.* method calls to use new argument format.');
  
      var knownArgs = [
          'debug',
          'release',
          'device',
          'emulator',
          'nobuild',
          'list',
          'buildConfig',
          'target',
          'archs'
      ];
  
      opts = nopt({}, {}, opts, 0);
      opts.argv = Object.keys(opts)
      .filter(function (arg) {
          return arg !== 'argv' && knownArgs.indexOf(arg) === -1;
      }).map(function (arg) {
          return opts[arg] === true ?
              '--' + arg :
              '--' + arg + '=' + opts[arg].toString();
      });
  
      return opts;
  }