mirror of
https://github.com/nodejs/node.git
synced 2024-11-21 10:59:27 +00:00
benchmark: support --help in CLI
PR-URL: https://github.com/nodejs/node/pull/53358 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
This commit is contained in:
parent
3660ad5c92
commit
0260bbeefa
@ -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';
|
||||
|
Loading…
Reference in New Issue
Block a user