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 ...@@ -21,9 +21,7 @@ class Parser
if @args.length < 2 if @args.length < 2
@help() @help()
user_config = @args[@args.indexOf('-c') + 1] user_config = @args[@args.indexOf('-c') + 1]
if user_config[0] isnt '/' return path.resolve(user_config)
user_config = process.cwd() + "/" + user_config
return path.normalize(user_config)
return null return null
module.exports = Parser 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