From f48f2c212c10c8b9d01a6c7a8454e29bb85cb263 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 33ba2e0963f2fe..583da8f6b20622 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';