react-native-flip
Version:
32 lines (26 loc) • 643 B
Flow
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow
* @format
*/
;
const yargs = require('yargs');
const {runInspectorProxy} = require('./index');
const argv = yargs
.option('port', {
alias: 'p',
describe: 'port to run inspector proxy on',
type: 'number',
default: 8081,
})
.option('root', {
alias: 'r',
describe: 'root folder of metro project',
type: 'string',
default: '',
}).argv;
runInspectorProxy((argv.port: any), (argv.root: any));