checkPlugin: Fix command-line argument parsing bug

pull/4640/head
Richard Hansen 2021-01-08 18:07:55 -05:00
parent fd3004faad
commit ba1c468865
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@ const pluginPath = `node_modules/${pluginName}`;
console.log(`Checking the plugin: ${pluginName}`); console.log(`Checking the plugin: ${pluginName}`);
const optArgs = process.argv.slice(3, 0); const optArgs = process.argv.slice(3);
// Should we autofix? // Should we autofix?
const autoFix = optArgs.indexOf('autofix') !== -1; const autoFix = optArgs.indexOf('autofix') !== -1;