From 6edcb553e84548fd2c5c9f101d561c4f415ca476 Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Fri, 24 May 2013 20:41:52 +0800 Subject: [PATCH] If no pathsToOpen is specified and executedFrom is provided, then open executedFrom. This is the expected behavior of 'atom' cli command. --- src/main.coffee | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main.coffee b/src/main.coffee index 61a1b3123..2726834dd 100644 --- a/src/main.coffee +++ b/src/main.coffee @@ -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']