From b961fd1c078876acffa3dc9c2d44bba83bd595ed Mon Sep 17 00:00:00 2001 From: hacksalot Date: Mon, 11 Jan 2016 21:14:40 -0500 Subject: [PATCH] Fix global leak. --- src/cli/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cli/main.js b/src/cli/main.js index c719786..753a37a 100644 --- a/src/cli/main.js +++ b/src/cli/main.js @@ -170,7 +170,7 @@ Definition of the `main` function. return v === '-o' || v === '--options' || v === '--opts'; }); if(optsIdx !== -1) { - optStr = cleanArgs[ optsIdx + 1]; + var optStr = cleanArgs[ optsIdx + 1]; args.splice( optsIdx + 2, 2 ); if( optStr && (optStr = optStr.trim()) ) { //var myJSON = JSON.parse(optStr);