From ba1c468865194f47c5c65e08c3daeef8f4ae49b6 Mon Sep 17 00:00:00 2001 From: Richard Hansen Date: Fri, 8 Jan 2021 18:07:55 -0500 Subject: [PATCH] checkPlugin: Fix command-line argument parsing bug --- bin/plugins/checkPlugin.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/plugins/checkPlugin.js b/bin/plugins/checkPlugin.js index 3649e7f01..43fe64ee0 100755 --- a/bin/plugins/checkPlugin.js +++ b/bin/plugins/checkPlugin.js @@ -26,7 +26,7 @@ const pluginPath = `node_modules/${pluginName}`; console.log(`Checking the plugin: ${pluginName}`); -const optArgs = process.argv.slice(3, 0); +const optArgs = process.argv.slice(3); // Should we autofix? const autoFix = optArgs.indexOf('autofix') !== -1;