Comparing version 1.3.0 to 1.3.1
@@ -67,3 +67,8 @@ var Command, Option, Signature, parse, settings, state, _; | ||
} | ||
_this.action(params, parsedOptions, callback); | ||
try { | ||
_this.action(params, parsedOptions, callback); | ||
} catch (_error) { | ||
error = _error; | ||
return callback(error); | ||
} | ||
if (_this.action.length < 3) { | ||
@@ -70,0 +75,0 @@ return typeof callback === "function" ? callback() : void 0; |
{ | ||
"name": "capitano", | ||
"version": "1.3.0", | ||
"version": "1.3.1", | ||
"description": "Powerful, non opitionated command line parser for serious applications", | ||
@@ -5,0 +5,0 @@ "main": "build/capitano.js", |
@@ -6,2 +6,3 @@ Capitano | ||
[![dependencies](https://david-dm.org/resin-io/capitano.png)](https://david-dm.org/username/repo.png) | ||
[![Build Status](https://travis-ci.org/resin-io/capitano.svg?branch=master)](https://travis-ci.org/resin-io/capitano) | ||
@@ -49,2 +50,4 @@ Capitano allows you to craft powerful command line applications, your way. | ||
We wrote Capitano as we couldn't find any NodeJS command line parser that met our needs. Alternatives such as [commander.js](https://github.com/tj/commander.js), albeit being very good, didn't have good support for features such as infinitely nested git-like subcommands, per-command options and complete customisation. Capitano is our attempt at creating a non opitionated command line parser that can do everything you can imagine. | ||
Features | ||
@@ -355,2 +358,6 @@ -------- | ||
### 1.3.1 | ||
- Catch action errors and send them to the callback automatically. See [#17](https://github.com/resin-io/capitano/pull/17). | ||
### 1.3.0 | ||
@@ -357,0 +364,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
109881
31
645
419