From f1ac22881c3e9e152d5e27e31182ae77512d1c1e Mon Sep 17 00:00:00 2001 From: Hornwitser Date: Wed, 8 Dec 2021 23:59:40 +0100 Subject: [PATCH] Use strict parsing in installer (#439) Bail out if arguments that aren't understood are passed to the installer script instead of silently ignoring them. --- packages/create/create.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/create/create.js b/packages/create/create.js index 3497ec9d..fa4c62c7 100755 --- a/packages/create/create.js +++ b/packages/create/create.js @@ -527,7 +527,9 @@ async function main() { }) .option("plugins", { array: true, describe: "Plugins to install", type: "string", - }); + }) + .strict() + ; if (process.platform === "linux") { args = args