From cfbbeebe8b4bbed077c9053e0819bd0e206f4a82 Mon Sep 17 00:00:00 2001 From: Aparajita Fishman Date: Tue, 3 Sep 2013 11:39:49 -0400 Subject: [PATCH] Fixed: replace absolute with relative require, remove unsupported --trackComments from usage. Unless I'm missing something, the simple relative path "../acorn.js" is exactly equivalent to the absolute path being constructed in the old code. --- bin/acorn | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/acorn b/bin/acorn index b8d544fc19..046fdf6c1e 100755 --- a/bin/acorn +++ b/bin/acorn @@ -2,13 +2,13 @@ var path = require('path'); var fs = require('fs'); -var acorn = require(path.join(path.dirname(fs.realpathSync(__filename)), "../acorn.js")); +var acorn = require('../acorn.js'); var infile, parsed, options = {}, silent = false, compact = false; function help(status) { console.log("usage: " + path.basename(process.argv[1]) + " infile [--ecma3|--ecma5] [--strictSemicolons]"); - console.log(" [--trackComments] [--locations] [--compact] [--silent] [--help]"); + console.log(" [--locations] [--compact] [--silent] [--help]"); process.exit(status); }