code: function(key, val) {
        var len = arguments.length;
        if (len === 1 && typeof key === 'string') {
          return this.getOption(key);
        }
        if (utils.isObject(key)) {
          this.visit('option', key);
          return this;
        }
        set(this.options, key, val);
        this.emit('option', key, val);
        return this;
      }
docs: Set or get an option.
  
  ```js
  glob.option('foo.bar', 'baz');
  glob.option('foo');
  //=> { bar: 'baz' }
  ```
  
  @param {String} `key` Dot notation may optionally be used.
  @param {any} `value`
  @return {Object} `Options` to enable chaining
  @api public