From fec14379f6bae209484d75ba1db5c6b5ee37ae5a Mon Sep 17 00:00:00 2001 From: "Alex Lam S.L" Date: Sun, 28 May 2017 04:09:40 +0800 Subject: improve CLI usability (#2016) Report supported options upon invalid option syntax. fixes #1883 --- bin/uglifyjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bin/uglifyjs') diff --git a/bin/uglifyjs b/bin/uglifyjs index 8ea7d16b..158dc571 100755 --- a/bin/uglifyjs +++ b/bin/uglifyjs @@ -351,7 +351,7 @@ function parse_js(flag, constants) { } })); } catch(ex) { - fatal("Error parsing arguments for '" + flag + "': " + value); + options[value] = null; } return options; } -- cgit v1.2.3