implemetation of AtomCommandline to preserve args

This commit is contained in:
deepak1556 2015-03-17 18:25:53 +05:30 committed by Robo
parent 8aae7c4440
commit 399f47ef0f
12 changed files with 104 additions and 59 deletions

View file

@ -7,13 +7,6 @@ util = require 'util'
# we need to restore it here.
process.argv.splice 1, 1
# Pick out switches appended by atom-shell.
startMark = process.argv.indexOf '--atom-shell-switches-start'
endMark = process.argv.indexOf '--atom-shell-switches-end'
# And --force-device-scale-factor on Linux.
endMark++ if process.platform is 'linux'
process.argv.splice startMark, endMark - startMark + 1
# Add browser/api/lib to require's search paths,
# which contains javascript part of Atom's built-in libraries.
globalPaths = module.globalPaths