We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 28c5dc8 commit 6968389Copy full SHA for 6968389
1 file changed
src/start.ts
@@ -247,9 +247,9 @@ export const start = defineCommand({
247
},
248
249
run({ args }) {
250
- const rateLimitRaw = args["rate-limit"]
+ const parsedRateLimit = Number.parseInt(args["rate-limit"], 10)
251
const rateLimit =
252
- rateLimitRaw === undefined ? undefined : Number.parseInt(rateLimitRaw, 10)
+ Number.isNaN(parsedRateLimit) ? undefined : parsedRateLimit
253
254
return runServer({
255
port: Number.parseInt(args.port, 10),
0 commit comments