Commit 679cd807 authored by Leo Iannacone's avatar Leo Iannacone

use path resolve instead of resolve user config manually

parent cd7f5c26
......@@ -21,9 +21,7 @@ class Parser
if @args.length < 2
@help()
user_config = @args[@args.indexOf('-c') + 1]
if user_config[0] isnt '/'
user_config = process.cwd() + "/" + user_config
return path.normalize(user_config)
return path.resolve(user_config)
return null
module.exports = Parser
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment