Skip to content

Commit 19deaf4

Browse files
committed
fix: make rate limiting opt-in by removing default value
Remove the default value of 3 seconds for --rate-limit flag to ensure rate limiting is only active when explicitly requested by the user. This allows requests to execute immediately without queuing when the flag is not provided. Signed-off-by: leocavalcante <[email protected]>
1 parent 94ea329 commit 19deaf4

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/start.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,15 +156,14 @@ export const start = defineCommand({
156156
"rate-limit": {
157157
alias: "r",
158158
type: "string",
159-
default: "3",
160159
description: "Rate limit in seconds between requests",
161160
},
162161
wait: {
163162
alias: "w",
164163
type: "boolean",
165164
default: false,
166165
description:
167-
"Wait instead of error when rate limit is hit. Has no effect if rate limit is not set",
166+
"Wait instead of error when rate limit is hit. Only applies when --rate-limit is set",
168167
},
169168
"github-token": {
170169
alias: "g",

0 commit comments

Comments
 (0)