From cb448307b68735d1f85280ff9aeebd255ef173ac Mon Sep 17 00:00:00 2001 From: sadick254 Date: Wed, 23 Sep 2020 12:30:08 +0300 Subject: [PATCH] Delete version options --- src/main-process/parse-command-line.js | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/src/main-process/parse-command-line.js b/src/main-process/parse-command-line.js index f35d151a9..90963a1c4 100644 --- a/src/main-process/parse-command-line.js +++ b/src/main-process/parse-command-line.js @@ -112,10 +112,6 @@ module.exports = function parseCommandLine(processArgs) { 'timeout', 'When in test mode, waits until the specified time (in minutes) and kills the process (exit code: 130).' ); - options - .alias('v', 'version') - .boolean('v') - .describe('v', 'Print the version information.'); options .alias('w', 'wait') .boolean('w') @@ -152,16 +148,6 @@ module.exports = function parseCommandLine(processArgs) { process.exit(0); } - if (args.version) { - process.stdout.write( - `Atom : ${app.getVersion()}\n` + - `Electron: ${process.versions.electron}\n` + - `Chrome : ${process.versions.chrome}\n` + - `Node : ${process.versions.node}\n` - ); - process.exit(0); - } - const addToLastWindow = args['add']; const safeMode = args['safe']; const benchmark = args['benchmark'];