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:
Cheng Zhao
2013-05-24 20:41:52 +08:00
parent ce1c1e1f88
commit 6edcb553e8

View File

@@ -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']