From 29503d2d37e9bee163751d2bdab5a6365129b8e7 Mon Sep 17 00:00:00 2001 From: Christopher Monsanto Date: Sat, 10 Jan 2015 22:40:39 -0500 Subject: [PATCH] fix _6to5-node name in help screen --- bin/_6to5-node | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bin/_6to5-node b/bin/_6to5-node index 842ebd666b..6a95408d29 100644 --- a/bin/_6to5-node +++ b/bin/_6to5-node @@ -10,6 +10,9 @@ var util = require("../lib/6to5/util"); var vm = require("vm"); var _ = require("lodash"); +// Correct executed script name from /absolute/path/to/_6to5-node +process.argv[1] = path.resolve(process.argv[1], "..", "6to5-node"); + commander.option("-e, --eval [script]", "Evaluate script"); commander.option("-p, --print", "Evaluate script and print result"); commander.option("-i, --ignore [regex]", "Ignore all files that match this regex when using the require hook");