diff --git a/add.js b/add.js index 432de7c..4d7e69b 100644 --- a/add.js +++ b/add.js @@ -36,9 +36,18 @@ async function add(opts) { } const { - did, paths, password, force, keyringOpts + keyringOpts, + password, + force, + did } = opts + let { paths } = opts + + if ('string' === typeof opts.paths) { + paths = [ opts.paths ] + } + let afs try { ({ afs } = await create({ did, password, keyringOpts }))