mirror of
https://github.com/atom/atom.git
synced 2026-04-06 03:02:13 -04:00
Do this different
This commit is contained in:
@@ -67,7 +67,7 @@ module.exports = function parseCommandLine (processArgs) {
|
||||
args = {
|
||||
urlHandler: true,
|
||||
'url-handler': true,
|
||||
_: args._
|
||||
_: args._.slice(0, 1)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -125,14 +125,6 @@ module.exports = function parseCommandLine (processArgs) {
|
||||
}
|
||||
}
|
||||
|
||||
// When performing as a URL handler, only accept one URL and no paths
|
||||
if (args.urlHandler) {
|
||||
pathsToOpen = []
|
||||
if (urlsToOpen.length > 1) {
|
||||
urlsToOpen.length = 1
|
||||
}
|
||||
}
|
||||
|
||||
if (args['resource-path']) {
|
||||
devMode = true
|
||||
devResourcePath = args['resource-path']
|
||||
|
||||
Reference in New Issue
Block a user