Allow cli options to be specified in separate definitions
Fix for #963. This allows stuff like `--define a=1 --define b=1` besides only `--define a=1,b=1`
This commit is contained in:
parent
601780acc1
commit
895b288bdf
|
|
@ -504,6 +504,8 @@ function getOptions(x, constants) {
|
||||||
if (x == null) return null;
|
if (x == null) return null;
|
||||||
var ret = {};
|
var ret = {};
|
||||||
if (x !== "") {
|
if (x !== "") {
|
||||||
|
if (Array.isArray(x)) x = x.map(function (v) { return "(" + v + ")"; }).join(", ");
|
||||||
|
|
||||||
var ast;
|
var ast;
|
||||||
try {
|
try {
|
||||||
ast = UglifyJS.parse(x, { expression: true });
|
ast = UglifyJS.parse(x, { expression: true });
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user