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 Aug 6, 2024
1 parent 3660ad5 commit 0260bbe
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 0260bbe

Please sign in to comment.