This commit is contained in:
mierenmanz 2021-04-28 20:29:27 +02:00
parent dcbf635860
commit bffead6680

View file

@ -48,7 +48,7 @@ function parseFlags(
argsNullable[i] = null
args[entry.name] = true
break
} else args[entry.name] = entry.defaultValue ?? false;
} else args[entry.name] = entry.defaultValue ?? false
}
}
@ -81,5 +81,5 @@ function parseRest(
argsNullable: Array<string | null>
): void {
const restValues = argsNullable.filter((x) => typeof x === 'string')
args[entry.name] = restValues !== null ? restValues : entry.defaultValue;
args[entry.name] = restValues !== null ? restValues : entry.defaultValue
}