Allow --no-* options to disable their respective parameter

Fixes #974 and #972
This commit is contained in:
Richard van Velzen
2016-02-17 20:04:45 +01:00
parent 6547437725
commit bdd8e34f63

View File

@@ -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(", ");