code: function getOptions(rules, opts) {
  	var dir;
  	var obj = {
  		source: opts.source,
  		transform: opts.transform || function (val) {
  			return val;
  		}
  	};
  
  	obj.path = opts.path || [];
  	obj.path = Array.isArray(obj.path) ? obj.path : [obj.path];
  
  	if (rules.length && rules[0].position && rules[0].position.source) {
  		dir = path.dirname(rules[0].position.source);
  	}
  
  	if (dir && obj.path.indexOf(dir) === -1) {
  		obj.path.unshift(dir);
  	}
  
  	if (!obj.path.length) {
  		obj.path.push(process.cwd());
  	}
  
  	return obj;
  }
docs: Get options
  
  @param {Array} rules
  @param {Object} opts
  @api private