Comparing version 3.0.3 to 3.0.4
{ | ||
"name": "nopt", | ||
"version": "3.0.3", | ||
"version": "3.0.4", | ||
"description": "Option parsing for Node, supporting types, shorthands, etc. Used by npm.", | ||
@@ -5,0 +5,0 @@ "author": "Isaac Z. Schlueter <i@izs.me> (http://blog.izs.me/)", |
@@ -32,3 +32,4 @@ If you want to write an option parser, and have it be good, there are | ||
, "pick" : Boolean | ||
, "many" : [String, Array] | ||
, "many1" : [String, Array] | ||
, "many2" : [path] | ||
} | ||
@@ -82,7 +83,7 @@ , shortHands = { "foofoo" : ["--foo", "Mr. Foo"] | ||
$ node my-program.js --many 1 --many null --many foo | ||
{ many: ["1", "null", "foo"] } | ||
$ node my-program.js --many1 5 --many1 null --many1 foo | ||
{ many1: ["5", "null", "foo"] } | ||
$ node my-program.js --many foo | ||
{ many: ["foo"] } | ||
$ node my-program.js --many2 foo --many2 bar | ||
{ many2: ["/path/to/foo", "path/to/bar"] } | ||
``` | ||
@@ -143,4 +144,4 @@ | ||
By default, nopt outputs a warning to standard error when invalid | ||
options are found. You can change this behavior by assigning a method | ||
By default, nopt outputs a warning to standard error when invalid values for | ||
known options are found. You can change this behavior by assigning a method | ||
to `nopt.invalidHandler`. This method will be called with | ||
@@ -147,0 +148,0 @@ the offending `nopt.invalidHandler(key, val, types)`. |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
30546
212
1