Skip to content

Commit 4dd229f

Browse files
avivkellertargos
authored andcommitted
benchmark: support --help in CLI
PR-URL: #53358 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
1 parent ef9a950 commit 4dd229f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

benchmark/_cli.js

+1
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ function CLI(usage, settings) {
3333
let mode = 'both'; // Possible states are: [both, option, item]
3434

3535
for (const arg of process.argv.slice(2)) {
36+
if (arg === '--help') this.abort(usage);
3637
if (arg === '--') {
3738
// Only items can follow --
3839
mode = 'item';

0 commit comments

Comments
 (0)