Skip to content

Commit

Permalink
benchmark: support --help in CLI
Browse files Browse the repository at this point in the history
PR-URL: #53358
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
  • Loading branch information
RedYetiDev authored and targos committed Sep 21, 2024
1 parent a3c93a8 commit 65c75c7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions benchmark/_cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down

0 comments on commit 65c75c7

Please sign in to comment.