@anycli/command
Advanced tools
Comparing version 1.2.7 to 1.2.8
@@ -0,1 +1,9 @@ | ||
<a name="1.2.8"></a> | ||
## [1.2.8](https://github.com/anycli/command/compare/dd18e9c08ece41f3cbb04b21080a52ffa102cadf...v1.2.8) (2018-02-05) | ||
### Bug Fixes | ||
* add error handler ([ce49022](https://github.com/anycli/command/commit/ce49022)) | ||
<a name="1.2.7"></a> | ||
@@ -2,0 +10,0 @@ ## [1.2.7](https://github.com/anycli/command/compare/84a397ed21572b4276bfebed3f7adc9824243690...v1.2.7) (2018-02-05) |
@@ -61,6 +61,3 @@ "use strict"; | ||
async catch(err) { | ||
if (err && err['cli-ux'] && err['cli-ux'].exit !== undefined) { | ||
process.exitCode = err['cli-ux'].exit; | ||
} | ||
else if (err.message.match(/Unexpected arguments?: (-h|--help)(,|\n)/)) { | ||
if (err.message.match(/Unexpected arguments?: (-h|--help)(,|\n)/)) { | ||
this._help(); | ||
@@ -67,0 +64,0 @@ } |
{ | ||
"name": "@anycli/command", | ||
"description": "anycli base command", | ||
"version": "1.2.7", | ||
"version": "1.2.8", | ||
"author": "Jeff Dickey @jdxcode", | ||
@@ -19,3 +19,3 @@ "bugs": "https://github.com/anycli/command/issues", | ||
"devDependencies": { | ||
"@anycli/config": "^1.2.3", | ||
"@anycli/config": "^1.3.2", | ||
"@anycli/plugin-help": "^0.6.3", | ||
@@ -22,0 +22,0 @@ "@anycli/plugin-not-found": "^0.1.16", |
34675
15
364