From 66d5529ea44382dbaa18b383fd3efe23a8346800 Mon Sep 17 00:00:00 2001 From: Sam Swarr Date: Fri, 8 Apr 2016 12:08:15 -0700 Subject: [PATCH] Have parseCommandLine use a new instance of optimist for each run Reviewed By: mjmahone Differential Revision: D3156730 fb-gh-sync-id: 0a55d0c231a93a6c590bd8c4a6eb793eda66f32f fbshipit-source-id: 0a55d0c231a93a6c590bd8c4a6eb793eda66f32f --- local-cli/util/parseCommandLine.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/local-cli/util/parseCommandLine.js b/local-cli/util/parseCommandLine.js index 4293b79b9..04490f67a 100644 --- a/local-cli/util/parseCommandLine.js +++ b/local-cli/util/parseCommandLine.js @@ -18,9 +18,10 @@ */ 'use strict'; -var optimist = require('optimist'); +var optimistModule = require('optimist'); function parseCommandLine(config, args) { + var optimist = new optimistModule(); args = args || process.argv; // optimist default API requires you to write the command name three time // This is a small wrapper to accept an object instead