From 768090dcb277eaea3993ee3d282591035a2055ad Mon Sep 17 00:00:00 2001 From: Eric Traut Date: Thu, 2 Apr 2026 22:22:07 -0700 Subject: [PATCH] Fix deprecated login --api-key parsing --- codex-rs/cli/src/main.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/codex-rs/cli/src/main.rs b/codex-rs/cli/src/main.rs index 082965b3d22..f889e225688 100644 --- a/codex-rs/cli/src/main.rs +++ b/codex-rs/cli/src/main.rs @@ -287,6 +287,8 @@ struct LoginCommand { #[arg( long = "api-key", + num_args = 0..=1, + default_missing_value = "", value_name = "API_KEY", help = "(deprecated) Previously accepted the API key directly; now exits with guidance to use --with-api-key", hide = true