Skip to content

armgit / codex

Public Imported from GitHub
0

Lightweight coding agent that runs in your terminal

Rust

Fix deprecated login --api-key parsing (#16658)

Eric Traut8cd7f20b482a
diff --git a/codex-rs/cli/src/main.rs b/codex-rs/cli/src/main.rs
index 082965b3d2..f889e22568 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