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