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

Set clap usage override so help lists subcommands before the prompt
argument.
This commit is contained in:
Thibault Sottiaux
2025-10-19 16:17:51 -07:00
committed by GitHub
parent 3e071c4c95
commit 3ed728790b

View File

@@ -42,7 +42,8 @@ use codex_core::config::ConfigOverrides;
// The executable is sometimes invoked via a platformspecific 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)]