8000 benchmark: support --help in CLI · nodejs/node@4dd229f · GitHub
[go: up one dir, main page]

Skip to content
< 8000 script crossorigin="anonymous" type="application/javascript" src="https://github.githubassets.com/assets/85110-f7be2f54525a.js" defer="defer">

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

Lines changed: 1 addition & 0 deletions
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)
0