Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRebecca Turner <me@re-becca.org>2015-09-10 20:22:25 +0300
committerRebecca Turner <me@re-becca.org>2015-09-10 23:47:24 +0300
commite5b6743028020c38a415b3314f640d16d7c6cf13 (patch)
treeb6ea5a967d10249d0ebfc4605bf00a549c0feaf5 /node_modules
parentc075a91ebaca6478cd7763b724a0dab8966235e4 (diff)
nopt@3.0.4
Diffstat (limited to 'node_modules')
-rw-r--r--node_modules/nopt/README.md15
-rw-r--r--node_modules/nopt/package.json45
2 files changed, 33 insertions, 27 deletions
diff --git a/node_modules/nopt/README.md b/node_modules/nopt/README.md
index 22c50ec40..f21a4b31c 100644
--- a/node_modules/nopt/README.md
+++ b/node_modules/nopt/README.md
@@ -29,7 +29,8 @@ nice option parser.
, "bloo" : [ "big", "medium", "small" ]
, "flag" : Boolean
, "pick" : Boolean
- , "many" : [String, Array]
+ , "many1" : [String, Array]
+ , "many2" : [path]
}
, shortHands = { "foofoo" : ["--foo", "Mr. Foo"]
, "b7" : ["--bar", "7"]
@@ -78,11 +79,11 @@ $ node my-program.js --baz b/a/z # known paths are resolved.
# values, and will always be an array. The other types provided
# specify what types are allowed in the list.
-$ 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"] }
```
Read the tests at the bottom of `lib/nopt.js` for more examples of
@@ -138,8 +139,8 @@ config object and remove its invalid properties.
## Error Handling
-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
the offending `nopt.invalidHandler(key, val, types)`.
diff --git a/node_modules/nopt/package.json b/node_modules/nopt/package.json
index 9d5254dea..e7272b701 100644
--- a/node_modules/nopt/package.json
+++ b/node_modules/nopt/package.json
@@ -1,38 +1,38 @@
{
"_args": [
[
- "nopt@~3.0.2",
- "/Users/rebecca/code/release/npm-3"
+ "nopt@~3.0.3",
+ "/Users/rebecca/code/npm"
]
],
- "_from": "nopt@>=3.0.2 <3.1.0",
- "_id": "nopt@3.0.3",
+ "_from": "nopt@>=3.0.3 <3.1.0",
+ "_id": "nopt@3.0.4",
"_inCache": true,
"_location": "/nopt",
- "_nodeVersion": "2.2.1",
+ "_nodeVersion": "2.2.2",
"_npmUser": {
- "email": "isaacs@npmjs.com",
- "name": "isaacs"
+ "email": "kat@sykosomatic.org",
+ "name": "zkat"
},
- "_npmVersion": "2.12.0",
+ "_npmVersion": "2.14.3",
"_phantomChildren": {},
"_requested": {
"name": "nopt",
- "raw": "nopt@~3.0.2",
- "rawSpec": "~3.0.2",
+ "raw": "nopt@~3.0.3",
+ "rawSpec": "~3.0.3",
"scope": null,
- "spec": ">=3.0.2 <3.1.0",
+ "spec": ">=3.0.3 <3.1.0",
"type": "range"
},
"_requiredBy": [
"/",
"/node-gyp"
],
- "_resolved": "https://registry.npmjs.org/nopt/-/nopt-3.0.3.tgz",
- "_shasum": "0e9978f33016bae0b75e3748c03bbbb71da5c530",
+ "_resolved": "https://registry.npmjs.org/nopt/-/nopt-3.0.4.tgz",
+ "_shasum": "dd63bc9c72a6e4e85b85cdc0ca314598facede5e",
"_shrinkwrap": null,
- "_spec": "nopt@~3.0.2",
- "_where": "/Users/rebecca/code/release/npm-3",
+ "_spec": "nopt@~3.0.3",
+ "_where": "/Users/rebecca/code/npm",
"author": {
"email": "i@izs.me",
"name": "Isaac Z. Schlueter",
@@ -53,17 +53,22 @@
},
"directories": {},
"dist": {
- "shasum": "0e9978f33016bae0b75e3748c03bbbb71da5c530",
- "tarball": "http://registry.npmjs.org/nopt/-/nopt-3.0.3.tgz"
+ "shasum": "dd63bc9c72a6e4e85b85cdc0ca314598facede5e",
+ "tarball": "http://registry.npmjs.org/nopt/-/nopt-3.0.4.tgz"
},
- "gitHead": "f64a64cd48d9f2660dd4e59191ff46a26397d6b1",
+ "gitHead": "f52626631ea1afef5a6dd9acf23ddd1466831a08",
"homepage": "https://github.com/isaacs/nopt#readme",
+ "installable": true,
"license": "ISC",
"main": "lib/nopt.js",
"maintainers": [
{
"name": "isaacs",
- "email": "i@izs.me"
+ "email": "isaacs@npmjs.com"
+ },
+ {
+ "name": "zkat",
+ "email": "kat@sykosomatic.org"
}
],
"name": "nopt",
@@ -75,5 +80,5 @@
"scripts": {
"test": "tap test/*.js"
},
- "version": "3.0.3"
+ "version": "3.0.4"
}