Skip to content

Commit df68eaa

Browse files
committed
allow for empty -p, that's easier then calling the command "just right"
1 parent f696d57 commit df68eaa

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

scripts/bench/bench-packages.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -411,6 +411,9 @@ const run = async () => {
411411
'-p, --pull-request <number>',
412412
'The PR number to add compare results to. Only used together with --baseBranch',
413413
function parseInt(value) {
414+
if (value === '0' || value === '') {
415+
return null;
416+
}
414417
const parsedValue = Number.parseInt(value);
415418
if (Number.isNaN(parsedValue)) {
416419
throw new InvalidArgumentError('Must be a number');

0 commit comments

Comments
 (0)