Allow --no-* options to disable their respective parameter
Fixes #974 and #972
This commit is contained in:
@@ -501,7 +501,7 @@ function normalize(o) {
|
||||
|
||||
function getOptions(flag, constants) {
|
||||
var x = ARGS[flag];
|
||||
if (x == null) return null;
|
||||
if (x == null || x === false) return null;
|
||||
var ret = {};
|
||||
if (x !== "") {
|
||||
if (Array.isArray(x)) x = x.map(function (v) { return "(" + v + ")"; }).join(", ");
|
||||
|
||||
Reference in New Issue
Block a user