mirror of
https://github.com/react/react-native-devtools-frontend.git
synced 2026-09-28 21:24:26 +08:00
This Cl is the output of the following command: npm run install-deps -- dedupe This is an attempt to reduce the amount of disk usage of the node_modules folder. For more information, see https://github.com/eslint/eslint/issues/14098 DISABLE_THIRD_PARTY_CHECK=NPM dedupe R=jacktfranklin@chromium.org Bug: none Change-Id: If482ec6cf6ad1936aab4a7b0ff3e61bf5ea98a8f Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2703961 Reviewed-by: Jack Franklin <jacktfranklin@chromium.org> Commit-Queue: Jack Franklin <jacktfranklin@chromium.org> Auto-Submit: Tim van der Lippe <tvanderlippe@chromium.org>
31 lines
1.0 KiB
JavaScript
Executable File
31 lines
1.0 KiB
JavaScript
Executable File
#!/usr/bin/env node
|
|
|
|
//process.env.DEBUG_NOPT = 1
|
|
|
|
// my-program.js
|
|
var nopt = require("../lib/nopt")
|
|
, Stream = require("stream").Stream
|
|
, path = require("path")
|
|
, knownOpts = { "foo" : [String, null]
|
|
, "bar" : [Stream, Number]
|
|
, "baz" : path
|
|
, "bloo" : [ "big", "medium", "small" ]
|
|
, "flag" : Boolean
|
|
, "pick" : Boolean
|
|
}
|
|
, shortHands = { "foofoo" : ["--foo", "Mr. Foo"]
|
|
, "b7" : ["--bar", "7"]
|
|
, "m" : ["--bloo", "medium"]
|
|
, "p" : ["--pick"]
|
|
, "f" : ["--flag", "true"]
|
|
, "g" : ["--flag"]
|
|
, "s" : "--flag"
|
|
}
|
|
// everything is optional.
|
|
// knownOpts and shorthands default to {}
|
|
// arg list defaults to process.argv
|
|
// slice defaults to 2
|
|
, parsed = nopt(knownOpts, shortHands, process.argv, 2)
|
|
|
|
console.log("parsed =\n"+ require("util").inspect(parsed))
|