From 30f3334c38c1025b6116035fb6dca944e17c98f7 Mon Sep 17 00:00:00 2001 From: Cheton Wu Date: Tue, 2 May 2017 23:20:45 +0800 Subject: [PATCH] Remove unused codes --- src/cnc.js | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/cnc.js b/src/cnc.js index 1fb522959..11a60a4dd 100644 --- a/src/cnc.js +++ b/src/cnc.js @@ -64,12 +64,6 @@ program.on('--help', () => { console.log(''); }); -// https://github.com/tj/commander.js/issues/512 -// Commander assumes that process.argv[0] is 'node' and argv[1] is script name -if (process.argv.length > 1) { - program.parse(process.argv); -} - // Commander assumes that the first two values in argv are 'node' and appname, and then followed by the args. // This is not the case when running from a packaged Electron app. Here you have the first value appname and then args. const normalizedArgv = ('' + process.argv[0]).indexOf(pkg.name) >= 0