diff --git a/src/browser/main.coffee b/src/browser/main.coffee index 20f5bb046..0fd5cc59d 100644 --- a/src/browser/main.coffee +++ b/src/browser/main.coffee @@ -83,6 +83,12 @@ setupCompileCache = -> compileCache = require('../compile-cache') compileCache.setAtomHomeDirectory(process.env.ATOM_HOME) +fullVersion = -> + process.stdout.write("Atom : #{app.getVersion()}\n") + process.stdout.write("Electron: #{process.versions.electron}\n") + process.stdout.write("Chrome : #{process.versions.chrome}\n") + process.stdout.write("Node : #{process.versions.node}\n") + parseCommandLine = -> version = app.getVersion() options = yargs(process.argv[1..]).wrap(100) @@ -118,7 +124,7 @@ parseCommandLine = -> options.boolean('portable').describe('portable', 'Set portable mode. Copies the ~/.atom folder to be a sibling of the installed Atom location if a .atom folder is not already there.') options.alias('t', 'test').boolean('t').describe('t', 'Run the specified specs and exit with error code on failures.') options.string('timeout').describe('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.') + options.alias('v', 'version').boolean('v').describe('v', 'Print the version information.') options.alias('w', 'wait').boolean('w').describe('w', 'Wait for window to be closed before returning.') options.string('socket-path') options.string('user-data-dir') @@ -131,7 +137,7 @@ parseCommandLine = -> process.exit(0) if args.version - process.stdout.write("#{version}\n") + fullVersion() process.exit(0) executedFrom = args['executed-from']?.toString() ? process.cwd()