From 0260bbeefaf55e5781d4d4ffe5e4b54bb8c45529 Mon Sep 17 00:00:00 2001 From: Aviv Keller <38299977+RedYetiDev@users.noreply.github.com> Date: Tue, 6 Aug 2024 14:21:27 -0400 Subject: [PATCH] benchmark: support --help in CLI PR-URL: https://github.com/nodejs/node/pull/53358 Reviewed-By: James M Snell Reviewed-By: Luigi Pinca --- benchmark/_cli.js | 1 + 1 file changed, 1 insertion(+) diff --git a/benchmark/_cli.js b/benchmark/_cli.js index 33ba2e0963f..583da8f6b20 100644 --- a/benchmark/_cli.js +++ b/benchmark/_cli.js @@ -33,6 +33,7 @@ function CLI(usage, settings) { let mode = 'both'; // Possible states are: [both, option, item] for (const arg of process.argv.slice(2)) { + if (arg === '--help') this.abort(usage); if (arg === '--') { // Only items can follow -- mode = 'item';