Added test for choices parameter

This commit is contained in:
amikhalev
2017-06-28 13:51:53 -06:00
parent b9aac3eaa1
commit 1f921205c9

View File

@@ -566,7 +566,7 @@ function Argv$commandObject() {
alias: "string",
array: true,
boolean: true,
choices: ["a", "b", "c"],
choices: [undefined, false, "a", "b", "c"],
coerce: f => JSON.stringify(f),
config: true,
configParser: t => JSON.parse(fs.readFileSync(t, "utf8")),