Comparing version 3.0.0 to 3.1.0
@@ -26,4 +26,4 @@ 'use strict'; | ||
if (argv.version) { | ||
console.log(pkg.version); | ||
if (argv.version && opts.version !== false) { | ||
console.log(typeof opts.version === 'string' ? opts.version : pkg.version); | ||
process.exit(); | ||
@@ -30,0 +30,0 @@ } |
{ | ||
"name": "meow", | ||
"version": "3.0.0", | ||
"version": "3.1.0", | ||
"description": "CLI app helper", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -18,3 +18,3 @@ # meow [![Build Status](https://travis-ci.org/sindresorhus/meow.svg?branch=master)](https://travis-ci.org/sindresorhus/meow) | ||
```sh | ||
``` | ||
$ npm install --save meow | ||
@@ -70,8 +70,19 @@ ``` | ||
Type: `string` | ||
Type: `string`, `boolean` | ||
The help text you want shown. | ||
If you don't specify anything, it will still show the `package.json` `"description"`. Set it to `false` to disable it all together. | ||
If you don't specify anything, it will still show the package.json `"description"`. | ||
Set it to `false` to disable it all together. | ||
##### version | ||
Type: `string`, `boolean` | ||
Default: the package.json `"version"` property | ||
Set a custom version output. | ||
Set it to `false` to disable it all together. | ||
##### pkg | ||
@@ -78,0 +89,0 @@ |
4847
4
111