From 8ea6359838ef8cb48b97b1d813cb00e48a8b4022 Mon Sep 17 00:00:00 2001 From: Mathias Buus Date: Wed, 23 Sep 2015 18:05:18 +0200 Subject: [PATCH] allow passing in options as separate argument --- index.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 8821851..09b41e0 100644 --- a/index.js +++ b/index.js @@ -30,10 +30,11 @@ exports.context = function () { return ctx } -exports.mount = function (mnt, ops, cb) { +exports.mount = function (mnt, ops, opts, cb) { + if (typeof opts === 'function') return exports.mount(mnt, ops, null, opts) if (!cb) cb = noop - ops = xtend(ops) // clone + ops = xtend(ops, opts) // clone if (/\*|(^,)fuse-bindings(,$)/.test(process.env.DEBUG)) ops.options = ['debug'].concat(ops.options || []) mnt = path.resolve(mnt)