diff --git a/index.js b/index.js index 782eaae..b45e849 100644 --- a/index.js +++ b/index.js @@ -41,7 +41,7 @@ module.exports = (opts, minimistOpts) => { minimistOpts.string.splice(index, 1); } - const pkg = typeof opts.pkg === 'string' ? require(path.join(parentDir, opts.pkg)) : opts.pkg; + const pkg = opts.pkg; const argv = minimist(opts.argv, minimistOpts); let help = redent(trimNewlines((opts.help || '').replace(/\t+\n*$/, '')), 2); diff --git a/readme.md b/readme.md index d150938..2b368dc 100644 --- a/readme.md +++ b/readme.md @@ -111,10 +111,12 @@ Set it to `false` to disable it altogether. ##### pkg -Type: `string` `Object`
+Type: `Object`
Default: Closest package.json upwards -Relative path to package.json or as an `Object`. +package.json as an `Object`. + +*You most likely don't need this option.* ##### argv