fix regression: CLI options with hyphens like -b ascii-only (#1640)
fixes #1637
This commit is contained in:
@@ -561,7 +561,7 @@ function getOptions(flag, constants) {
|
||||
|
||||
var ast;
|
||||
try {
|
||||
ast = UglifyJS.parse(x, { expression: true });
|
||||
ast = UglifyJS.parse(x, { cli: true, expression: true });
|
||||
} catch(ex) {
|
||||
if (ex instanceof UglifyJS.JS_Parse_Error) {
|
||||
print_error("Error parsing arguments for flag `" + flag + "': " + x);
|
||||
|
||||
Reference in New Issue
Block a user