public
/
UglifyJS.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
df3bb80
)
improve handling of invalid CLI options (#3966)
author
Alex Lam S.L
<alexlamsl@gmail.com>
Mon, 8 Jun 2020 03:16:03 +0000
(
04:16
+0100)
committer
GitHub
<noreply@github.com>
Mon, 8 Jun 2020 03:16:03 +0000
(11:16 +0800)
bin/uglifyjs
patch
|
blob
|
history
diff --git
a/bin/uglifyjs
b/bin/uglifyjs
index
c15acca
..
fcbdff6
100755
(executable)
--- a/
bin/uglifyjs
+++ b/
bin/uglifyjs
@@
-40,6
+40,7
@@
while (args.length) {
} else if (arg[1] == "-") {
process_option(arg.slice(2));
} else [].forEach.call(arg.slice(1), function(letter, index, arg) {
+ if (!(letter in short_forms)) fatal("invalid option -" + letter);
process_option(short_forms[letter], index + 1 < arg.length);
});
}