Skip to content

Commit e6dc5a6

Browse files
authored
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
1 parent c991c6e commit e6dc5a6

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

codex-rs/cli/src/main.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,11 @@ use crate::proto::ProtoCli;
2727
author,
2828
version,
2929
// If a sub‑command is given, ignore requirements of the default args.
30-
subcommand_negates_reqs = true
30+
subcommand_negates_reqs = true,
31+
// The executable is sometimes invoked via a platform‑specific name like
32+
// `codex-x86_64-unknown-linux-musl`, but the help output should always use
33+
// the generic `codex` command name that users run.
34+
bin_name = "codex"
3135
)]
3236
struct MultitoolCli {
3337
#[clap(flatten)]

0 commit comments

Comments
 (0)