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:
Daniel Büchele
2019-02-08 09:07:20 -08:00
committed by Facebook Github Bot
parent 697962359c
commit cb6c7bb137

View File

@@ -47,7 +47,7 @@ yargs
startFlipper,
)
.version(global.__VERSION__)
.help();
.help().argv; // http://yargs.js.org/docs/#api-argv
function startFlipper({
dev,
@@ -87,7 +87,7 @@ function startFlipper({
// needs to be required after WebSocket polyfill is loaded
const devToolsEnhancer = require('remote-redux-devtools').default;
setup();
setup({});
const store = dev
? createStore(
reducers,