From 1579c0fb97bb781a624199decab92e19c77d74d6 Mon Sep 17 00:00:00 2001 From: Mihai Bazon Date: Mon, 10 Sep 2012 22:40:18 +0300 Subject: hoist_vars is pretty bad, it seems. cancelled it for now. --- bin/uglifyjs2 | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'bin') diff --git a/bin/uglifyjs2 b/bin/uglifyjs2 index e100b211..8009de5f 100755 --- a/bin/uglifyjs2 +++ b/bin/uglifyjs2 @@ -41,11 +41,8 @@ if (ARGS.h || ARGS.help) { var files = ARGS._.slice(); -if (files.length == 0) { - sys.error("ERROR: No input files."); - sys.puts(optimist.help()); - process.exit(1); -} +if (files.length == 0) + files = [ "-" ]; if (files.indexOf("-") >= 0 && ARGS.source_map) { sys.error("ERROR: Source map doesn't work with input from STDIN"); -- cgit v1.2.3