mirror of
https://github.com/atom/atom.git
synced 2026-01-22 21:38:10 -05:00
If no pathsToOpen is specified and executedFrom is provided, then open executedFrom.
This is the expected behavior of 'atom' cli command.
This commit is contained in:
@@ -37,6 +37,8 @@ parseCommandLine = ->
|
||||
executedFrom = args['executed-from'] ? process.cwd()
|
||||
pathsToOpen = args._
|
||||
|
||||
pathsToOpen = [executedFrom] if pathsToOpen.length is 0 and args['executed-from']
|
||||
|
||||
if args['resource-path']
|
||||
resourcePath = args['resource-path']
|
||||
else if args['dev']
|
||||
|
||||
Reference in New Issue
Block a user