Skip to content

armgit / codex

Public Imported from GitHub
0

Lightweight coding agent that runs in your terminal

Rust

fix: update CLI usage order for codex -h (#5356)

Thibault Sottiaux3ed728790ba7
diff --git a/codex-rs/cli/src/main.rs b/codex-rs/cli/src/main.rs
index e01bd259a5..30f7a91b14 100644
--- a/codex-rs/cli/src/main.rs
+++ b/codex-rs/cli/src/main.rs
@@ -42,7 +42,8 @@ use codex_core::config::ConfigOverrides;
// 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"
+ bin_name = "codex",
+ override_usage = "codex [OPTIONS] [PROMPT]\n codex [OPTIONS] <COMMAND> [ARGS]"
)]
struct MultitoolCli {
#[clap(flatten)]