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
OnlyAviv authored and targos committed Aug 14, 2024
1 parent ef9a950 commit 4dd229f
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 4dd229f

Please sign in to comment.