We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
--api-key
1 parent d11dfcb commit 0befc5dCopy full SHA for 0befc5d
commands/login/mod.ts
@@ -25,8 +25,8 @@ export const login = command("login", {
25
args: args()
26
.tuple([z.string().describe("An API key to log in with.")])
27
.optional(),
28
-}).run(async function* ({ args }) {
29
- let apiKey: string | undefined = args[0];
+}).run(async function* ({ args, flags }) {
+ let apiKey: string | undefined = args[0] ?? flags["api-key"];
30
31
if (!apiKey) {
32
try {
0 commit comments