posix-argv-parser
Advanced tools
Comparing version 0.4.0 to 0.4.1
@@ -23,2 +23,3 @@ var B = require("buster-core"); | ||
var opt = getOption(options, arg); | ||
if (!opt) { throw new Error("Unknown option '" + arg + "'"); } | ||
var flag = arg.slice(0, 2); | ||
@@ -25,0 +26,0 @@ var extra = arg.slice(2); |
{ | ||
"name": "posix-argv-parser", | ||
"version": "0.4.0", | ||
"version": "0.4.1", | ||
"description": "POSIX compliant command-line argument parser.", | ||
@@ -27,3 +27,3 @@ "homepage": "http://busterjs.org/docs/posix-argv-parser", | ||
"buster-core": ">=0.6.2", | ||
"when": "~1.3" | ||
"when": "https://github.com/cujojs/when/tarball/1.3.0" | ||
}, | ||
@@ -30,0 +30,0 @@ "devDependencies": { |
@@ -212,3 +212,11 @@ var buster = require("buster"); | ||
assert.match(this.a.options[1].description, "Bla bla"); | ||
}, | ||
"fails gracefully on non-existent option": function (done) { | ||
this.a.createOption(["-p"]); | ||
this.a.parse(["-node"], done(function (errors, options) { | ||
assert.match(errors[0], "Unknown option '-node'"); | ||
})); | ||
} | ||
}); |
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
HTTP dependency
Supply chain riskContains a dependency which resolves to a remote HTTP URL which could be used to inject untrusted code and reduce overall package reliability.
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
85478
2116
1
- Removedwhen@1.3.0(transitive)