Comparing version 2.1.0 to 2.1.1
14
index.js
@@ -83,5 +83,2 @@ 'use strict'; | ||
this.pkg = readPkg.sync().pkg | ||
this.unknownFn = function (arg) { | ||
console.log(("error: unknown option `" + arg + "`")) | ||
} | ||
@@ -129,3 +126,3 @@ this | ||
return this | ||
return this | ||
}; | ||
@@ -199,7 +196,2 @@ | ||
CAC.prototype.unknown = function unknown (fn) { | ||
this.unknownFn = fn | ||
return this | ||
}; | ||
CAC.prototype.parse = function parse (argv) { | ||
@@ -229,4 +221,4 @@ var this$1 = this; | ||
command = this.commands['*'] | ||
} | ||
this.runCommand(command) | ||
} | ||
this.runCommand(command) | ||
@@ -233,0 +225,0 @@ return this |
{ | ||
"name": "cac", | ||
"version": "2.1.0", | ||
"version": "2.1.1", | ||
"description": "Command & Conquer, the command-line queen.", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -63,6 +63,2 @@ # cac [![NPM version](https://img.shields.io/npm/v/cac.svg)](https://npmjs.com/package/cac) [![NPM downloads](https://img.shields.io/npm/dm/cac.svg)](https://npmjs.com/package/cac) [![Build Status](https://img.shields.io/circleci/project/egoist/cac/master.svg)](https://circleci.com/gh/egoist/cac) | ||
## .unknown(fn) | ||
- **fn**: `function`, invoked when an unknow option was provided by user. | ||
## .string(string | array) | ||
@@ -69,0 +65,0 @@ |
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
10149
189
74