mirror of
https://github.com/atom/atom.git
synced 2026-02-18 02:21:43 -05:00
Simplify dev resource path detection
This commit is contained in:
@@ -5,9 +5,8 @@ const yargs = require('yargs')
|
||||
const {app} = require('electron')
|
||||
const path = require('path')
|
||||
const fs = require('fs-plus')
|
||||
const getDevResourcePath = require('./get-dev-resource-path')
|
||||
|
||||
module.exports = function parseCommandLine (processArgs) {
|
||||
module.exports = function parseCommandLine (processArgs, initialResourcePath) {
|
||||
const options = yargs(processArgs).wrap(yargs.terminalWidth())
|
||||
const version = app.getVersion()
|
||||
options.usage(
|
||||
@@ -120,7 +119,7 @@ module.exports = function parseCommandLine (processArgs) {
|
||||
let pathsToOpen = []
|
||||
let urlsToOpen = []
|
||||
let devMode = args['dev']
|
||||
let devResourcePath = getDevResourcePath()
|
||||
let devResourcePath = initialResourcePath
|
||||
let resourcePath = null
|
||||
|
||||
for (const path of args._) {
|
||||
|
||||
Reference in New Issue
Block a user