From b497e2f4fc6cd4111124913cc36ab21d586f3683 Mon Sep 17 00:00:00 2001 From: Aviv Keller <38299977+RedYetiDev@users.noreply.github.com> Date: Wed, 5 Jun 2024 16:45:46 -0400 Subject: [PATCH] benchmark: support --help in CLI --- 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';