1
0
mirror of https://github.com/squidfunk/mkdocs-material.git synced 2024-11-24 07:30:12 +01:00

Trigger new build

This commit is contained in:
squidfunk 2017-02-25 17:25:47 +01:00
parent ac2f924dad
commit aaa3c8d6b4

View File

@ -57,7 +57,7 @@ let args = yargs
/* Only use the last seen value if boolean, so overrides are possible */
args = Object.keys(args).reduce((result, arg) => {
result[arg] = Array.isArray(args[arg]) && typeof args[arg][0] === "boolean" // TODO: ugly
result[arg] = Array.isArray(args[arg]) && typeof args[arg][0] === "boolean"
? [].concat(args[arg]).pop()
: args[arg]
return result