yargs add .argv to fix CLI
Summary: CLI was not working: - setup now needs an object with arguments passed - the `argv` property is needed by `yargs` to work in node: http://yargs.js.org/docs/#api-argv Reviewed By: passy Differential Revision: D13991958 fbshipit-source-id: a9432b27f3d4d24c1e43014b8fb87dca806a6e8a
This commit is contained in:
committed by
Facebook Github Bot
parent
697962359c
commit
cb6c7bb137
@@ -47,7 +47,7 @@ yargs
|
|||||||
startFlipper,
|
startFlipper,
|
||||||
)
|
)
|
||||||
.version(global.__VERSION__)
|
.version(global.__VERSION__)
|
||||||
.help();
|
.help().argv; // http://yargs.js.org/docs/#api-argv
|
||||||
|
|
||||||
function startFlipper({
|
function startFlipper({
|
||||||
dev,
|
dev,
|
||||||
@@ -87,7 +87,7 @@ function startFlipper({
|
|||||||
// needs to be required after WebSocket polyfill is loaded
|
// needs to be required after WebSocket polyfill is loaded
|
||||||
const devToolsEnhancer = require('remote-redux-devtools').default;
|
const devToolsEnhancer = require('remote-redux-devtools').default;
|
||||||
|
|
||||||
setup();
|
setup({});
|
||||||
const store = dev
|
const store = dev
|
||||||
? createStore(
|
? createStore(
|
||||||
reducers,
|
reducers,
|
||||||
|
|||||||
Reference in New Issue
Block a user