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 <jasnell@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
  • Loading branch information
avivkeller authored and targos committed Oct 2, 2024
1 parent 38aa9d6 commit f48f2c2
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 f48f2c2

Please sign in to comment.