args
Advanced tools
Comparing version 3.0.0 to 3.0.1
@@ -119,5 +119,7 @@ 'use strict'; | ||
// Unknown Option | ||
const availableOptions = [].concat( | ||
...this.details.options.map(opt => opt.usage) | ||
); | ||
const availableOptions = []; | ||
this.details.options.forEach(opt => { | ||
availableOptions.push.apply(availableOptions, opt.usage); | ||
}); | ||
const suggestOption = stringSimilarity.findBestMatch( | ||
@@ -277,3 +279,4 @@ option, | ||
// Generate full name of binary | ||
const full = this.binary + | ||
const full = | ||
this.binary + | ||
'-' + | ||
@@ -280,0 +283,0 @@ (Array.isArray(details.usage) ? details.usage[0] : details.usage); |
{ | ||
"name": "args", | ||
"version": "3.0.0", | ||
"version": "3.0.1", | ||
"description": "Minimal toolkit for building CLIs", | ||
@@ -16,3 +16,3 @@ "files": [ | ||
"engines": { | ||
"node": ">= 6.6.0" | ||
"node": "> 4.0.0" | ||
}, | ||
@@ -19,0 +19,0 @@ "keywords": [ |
@@ -19,3 +19,3 @@ # args | ||
Install the package (you'll need at least v6.6 of [Node](https://nodejs.org/en/)): | ||
Install the package (you'll need at least version 4.0.0 of [Node](https://nodejs.org/en/)): | ||
@@ -22,0 +22,0 @@ ```bash |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
28945
566
1