Skip to content

Commit

Permalink
fix: accept --api-key flag for login
Browse files Browse the repository at this point in the history
Closes #52
  • Loading branch information
ps-kwang authored Apr 24, 2024
1 parent d11dfcb commit 758cf9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion commands/login/mod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 758cf9c

Please sign in to comment.