Comparing version 2.0.0 to 2.1.0
@@ -18,3 +18,3 @@ 'use strict'; | ||
var pkg = require(path.join(parentDir, opts.pkg)); | ||
var pkg = typeof opts.pkg === 'string' ? require(path.join(parentDir, opts.pkg)) : opts.pkg; | ||
var argv = minimist(opts.argv, minimistOpts); | ||
@@ -32,3 +32,3 @@ var help = '\n' + indentString(pkg.description + (opts.help ? '\n\n' + opts.help : '\n'), ' '); | ||
if (argv.help) { | ||
if (argv.help && opts.help !== null) { | ||
showHelp(); | ||
@@ -35,0 +35,0 @@ } |
{ | ||
"name": "meow", | ||
"version": "2.0.0", | ||
"version": "2.1.0", | ||
"description": "CLI app helper", | ||
@@ -33,3 +33,3 @@ "license": "MIT", | ||
"minimist": "^1.1.0", | ||
"object-assign": "^1.0.0" | ||
"object-assign": "^2.0.0" | ||
}, | ||
@@ -36,0 +36,0 @@ "devDependencies": { |
@@ -73,8 +73,10 @@ # meow [![Build Status](https://travis-ci.org/sindresorhus/meow.svg?branch=master)](https://travis-ci.org/sindresorhus/meow) | ||
If you don't specify anything, it will still show the `package.json` `"description"`. Set it to `null` to disable it all together. | ||
##### pkg | ||
Type: `string` | ||
Type: `string`, `object` | ||
Default: `package.json` | ||
Relative path to `package.json`. | ||
Relative path to `package.json` or it as an object. | ||
@@ -81,0 +83,0 @@ ##### argv |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4595
4
100
+ Addedobject-assign@2.1.1(transitive)
- Removedobject-assign@1.0.0(transitive)
Updatedobject-assign@^2.0.0