Skip to content

Commit

Permalink
docs: make many2 be many
Browse files Browse the repository at this point in the history
Corrected an omission in the example in the docs.

Fixes: #57
Credit: @silkentrance
Reviewed-By: @othiym23
PR-URL: #58
  • Loading branch information
silkentrance authored and othiym23 committed Dec 13, 2016
1 parent 651d447 commit c0d156f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand All @@ -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:

Expand Down

0 comments on commit c0d156f

Please # to comment.