diff options
author | Alex Lam S.L <alexlamsl@gmail.com> | 2017-05-28 04:09:40 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-28 04:09:40 +0800 |
commit | fec14379f6bae209484d75ba1db5c6b5ee37ae5a (patch) | |
tree | 3eec8fe2603d68dac2dcfd851403c514f73f5888 /bin/uglifyjs | |
parent | 79131cd64749ee834118f32c2237693072950924 (diff) | |
download | tracifyjs-fec14379f6bae209484d75ba1db5c6b5ee37ae5a.tar.gz tracifyjs-fec14379f6bae209484d75ba1db5c6b5ee37ae5a.zip |
improve CLI usability (#2016)
Report supported options upon invalid option syntax.
fixes #1883
Diffstat (limited to 'bin/uglifyjs')
-rwxr-xr-x | bin/uglifyjs | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |