Help output shows incorrect binary name in Usage section

Resolved 💬 2 comments Opened Aug 12, 2025 by PeterDaveHello Closed Aug 18, 2025

What version of Codex is running?

0.21.0

Which model were you using?

_No response_

What platform is your computer?

Linux 6.8.0-60-generic x86_64 x86_64

What steps can reproduce the bug?

Run codex -h or codex --help from npm-installed CLI. The output shows Usage with the binary name as codex-x86_64-unknown-linux-musl, which is not the actual command users run (typically codex).

What is the expected behavior?

The Usage/help output should show the correct CLI command name (e.g., codex), matching how users invoke the tool, regardless of underlying binary target triple.

What do you see instead?

Usage/help output displays codex-x86_64-unknown-linux-musl as the command name, which is confusing and does not match user-installed executable.

Example output:

$ codex --help 
Codex CLI

If no subcommand is specified, options will be forwarded to the interactive CLI.

Usage: codex-x86_64-unknown-linux-musl [OPTIONS] [PROMPT]
       codex-x86_64-unknown-linux-musl [OPTIONS] [PROMPT] <COMMAND>

Additional information

Likely related to how the binary name is generated or displayed in help output. Should use the actual command as invoked, possibly via a shell variable like $0 or a platform equivalent in Rust.

Alternatively, hardcoding "codex" as the command name in help output would be clearer for users, though less adaptive to future renaming or binary changes.

View original on GitHub ↗

This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗