Skip to content

armgit / codex

Public Imported from GitHub
0

Lightweight coding agent that runs in your terminal

Rust

fix: display canonical command name in help (#2246)

pakrym-oaie6dc5a6df509
diff --git a/codex-rs/cli/src/main.rs b/codex-rs/cli/src/main.rs
index 9aef22c09f..8f59d2d401 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)]