diff --git a/src/cli/command-metadata.ts b/src/cli/command-metadata.ts index 359a540..0e0de6e 100644 --- a/src/cli/command-metadata.ts +++ b/src/cli/command-metadata.ts @@ -832,8 +832,9 @@ export const COMMAND_METADATA: Record = { "forward": "transfer" }, flags: { - ...flagList("token t user name u hose-token jwt ticket ticket-id auth-code staff staff-id staffId alias corp-name count limit n start offset state status corpid id keyword query q message msg reason matter hours hour duration days day to recipient target remarks comment corp", "value"), - ...flagList("all a logout admin save import persist switch current overwrite candidates list-candidates qr", "boolean") + ...flagList("token t user name u hose-token jwt ticket ticket-id auth-code staff staff-id staffId alias corp-name count limit n start offset state corpid id keyword query q message msg reason matter hours hour duration days day to recipient target remarks comment corp", "value"), + ...flagList("all a logout admin save import persist switch current overwrite candidates list-candidates qr check", "boolean"), + ...flagList("status", "boolean-or-value") } } }; diff --git a/src/cli/commands/assist-platform/login.ts b/src/cli/commands/assist-platform/login.ts index 896ff28..7c00ebb 100644 --- a/src/cli/commands/assist-platform/login.ts +++ b/src/cli/commands/assist-platform/login.ts @@ -69,7 +69,7 @@ export async function handleLogin( }; } - const checkStatusOnly = booleanOption(parsed.options, ["status"]); + const checkStatusOnly = booleanOption(parsed.options, ["status", "check"]); const forceQr = booleanOption(parsed.options, ["qr", "force"]); const isInteractive = Boolean( process.stdin.isTTY && !process.env.CI && process.env.NODE_ENV !== "test"