Skip to content

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
cheton committed May 2, 2017
2 parents c1d6896 + 30f3334 commit 24c0fd1
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/cnc.js
Expand Up @@ -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
Expand Down

0 comments on commit 24c0fd1

Please sign in to comment.