code: function getBuildArgs(options) {
      // if no options passed, empty object will be returned
      if (!options) return [];
  
      var downstreamArgs = [];
      var argNames =[
          'debug',
          'release',
          'device',
          'emulator',
          'nobuild',
          'list'
      ];
  
      argNames.forEach(function(flag) {
          if (options[flag]) {
              downstreamArgs.push('--' + flag);
          }
      });
  
      if (options.buildConfig) {
          downstreamArgs.push('--buildConfig=' + options.buildConfig);
      }
      if (options.target) {
          downstreamArgs.push('--target=' + options.target);
      }
      if (options.archs) {
          downstreamArgs.push('--archs=' + options.archs);
      }
  
      var unparsedArgs = options.argv || [];
      return downstreamArgs.concat(unparsedArgs);
  }
docs: Reconstructs the buildOptions tat will be passed along to platform scripts.
  This is an ugly temporary fix. The code spawning or otherwise calling into
  platform code should be dealing with this based on the parsed args object.
  
  @param   {Object}  options  A build options set, passed to `build` method
  
  @return  {String[]}         An array or arguments which can be passed to
  `create` build script.