diff --git a/commands/login/mod.ts b/commands/login/mod.ts index a6a572a..167ff3f 100644 --- a/commands/login/mod.ts +++ b/commands/login/mod.ts @@ -26,7 +26,7 @@ export const login = command("login", { .tuple([z.string().describe("An API key to log in with.")]) .optional(), }).run(async function* ({ args }) { - let apiKey: string | undefined = args[0]; + let apiKey: string | undefined = args[0] ?? flags["api-key"]; if (!apiKey) { try {