From e6dc5a6df5096a86eb393f191e6eeec49a6a549a Mon Sep 17 00:00:00 2001 From: pakrym-oai Date: Wed, 13 Aug 2025 09:39:11 -0700 Subject: [PATCH] fix: display canonical command name in help (#2246) ## Summary - ensure CLI help uses `codex` as program name regardless of binary filename ## Testing - `just fmt` - `just fix` *(fails: `let` expressions in this position are unstable)* - `cargo test --all-features` *(fails: `let` expressions in this position are unstable)* ------ https://chatgpt.com/codex/tasks/task_i_689bd5a731188320814dcbbc546ce22a --- codex-rs/cli/src/main.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/codex-rs/cli/src/main.rs b/codex-rs/cli/src/main.rs index 9aef22c0..8f59d2d4 100644 --- a/codex-rs/cli/src/main.rs +++ b/codex-rs/cli/src/main.rs @@ -27,7 +27,11 @@ use crate::proto::ProtoCli; author, version, // If a sub‑command is given, ignore requirements of the default args. - subcommand_negates_reqs = true + subcommand_negates_reqs = true, + // The executable is sometimes invoked via a platform‑specific name like + // `codex-x86_64-unknown-linux-musl`, but the help output should always use + // the generic `codex` command name that users run. + bin_name = "codex" )] struct MultitoolCli { #[clap(flatten)]