From cb6c7bb1372227543b0a91d774d7da843d223838 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20B=C3=BCchele?= Date: Fri, 8 Feb 2019 09:07:20 -0800 Subject: [PATCH] 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 --- headless/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/headless/index.js b/headless/index.js index a4b04b664..b57d73329 100644 --- a/headless/index.js +++ b/headless/index.js @@ -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,