code: function(args) {
    var params = {};
    // Convert a list like ['perPage=100', 'q=cat'] to a hash: {perPage: '100', q: 'cat'}
    args.map(function(arg) {
      var pair = arg.match('(.+)=(.+)');
      params[pair[1]] = pair[2];
    });
    // convert a photo's filepath to a Node file stream
    if (params.photo) {
      params.photo = fs.createReadStream(params.photo);
    }
    return params;
  }
docs: obj = response.select(obj, argv.select); if (Array.isArray(obj)) { obj.forEach(function(item) { console.log(JSON.stringify(item, null)); }); } else { console.log(JSON.stringify(obj, null)); } };