command-line-args
Advanced tools
Comparing version 3.0.3-0 to 3.0.3
{ | ||
"name": "command-line-args", | ||
"version": "3.0.3-0", | ||
"version": "3.0.3", | ||
"description": "A library to parse command-line options.", | ||
@@ -5,0 +5,0 @@ "repository": "https://github.com/75lb/command-line-args.git", |
@@ -44,7 +44,12 @@ 'use strict' | ||
var argv = [ '--url=my-url?q=123', '--two', '2', '--three=3' ] | ||
var result = cliArgs(optionDefinitions, argv) | ||
var result = cliArgs(optionDefinitions, [ '--url=my-url?q=123', '--two', '2', '--three=3' ]) | ||
a.strictEqual(result.url, 'my-url?q=123') | ||
a.strictEqual(result.two, '2') | ||
a.strictEqual(result.three, '3') | ||
result = cliArgs(optionDefinitions, [ '--url=my-url?q=123=1' ]) | ||
a.strictEqual(result.url, 'my-url?q=123=1') | ||
result = cliArgs({ name: 'my-url' }, [ '--my-url=my-url?q=123=1' ]) | ||
a.strictEqual(result['my-url'], 'my-url?q=123=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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
78265
1871
1