From c0d156f229f9994c5dfcec4a8886eceff7a07682 Mon Sep 17 00:00:00 2001 From: cklein Date: Thu, 26 Nov 2015 20:28:03 +0100 Subject: [PATCH] docs: make many2 be many Corrected an omission in the example in the docs. Fixes: #57 Credit: @silkentrance Reviewed-By: @othiym23 PR-URL: https://github.com/npm/nopt/pull/58 --- README.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/README.md b/README.md index 37e938a..e35a04f 100644 --- a/README.md +++ b/README.md @@ -31,7 +31,7 @@ var nopt = require("nopt") , "flag" : Boolean , "pick" : Boolean , "many1" : [String, Array] - , "many2" : [path] + , "many2" : [path, Array] } , shortHands = { "foofoo" : ["--foo", "Mr. Foo"] , "b7" : ["--bar", "7"] @@ -45,7 +45,6 @@ var nopt = require("nopt") // slice defaults to 2 , parsed = nopt(knownOpts, shortHands, process.argv, 2) console.log(parsed) -``` This would give you support for any of the following: