Slice application name off the argument list

This commit is contained in:
probablycorey
2013-05-20 14:03:38 -07:00
parent 4faf48233b
commit cf6b2f8efd

View File

@@ -25,8 +25,7 @@ setupNodePath= ->
process.env['NODE_PATH'] = resourcePaths.join path.delimiter
parseCommandLine = ->
modifiedArgv = ['node'].concat(process.argv) # optimist assumes the first arg will be node
args = optimist(modifiedArgv).argv
args = optimist(process.argv[1..]).argv
resourcePath = args['resource-path'] ? path.dirname(__dirname)
bootstrapApplication = ->