command-line-args
Advanced tools
Comparing version 4.0.5 to 4.0.6
@@ -21,3 +21,3 @@ 'use strict' | ||
} | ||
argv.forEach(arg => this.push(arg)) | ||
argv.forEach(arg => this.push(String(arg))) | ||
} | ||
@@ -24,0 +24,0 @@ |
{ | ||
"name": "command-line-args", | ||
"version": "4.0.5", | ||
"version": "4.0.6", | ||
"description": "A mature, feature-complete library to parse command-line options.", | ||
@@ -5,0 +5,0 @@ "repository": "https://github.com/75lb/command-line-args.git", |
@@ -49,1 +49,10 @@ 'use strict' | ||
}) | ||
runner.test('bad-input: non-strings in argv', function () { | ||
const definitions = [ | ||
{ name: 'one', type: Number } | ||
] | ||
const argv = [ '--one', 1 ] | ||
const result = commandLineArgs(definitions, { argv }) | ||
a.deepStrictEqual(result, { one: 1 }) | ||
}) |
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
89066
2178