Skip to content

Commit 3ed7287

Browse files
authored
fix: update CLI usage order for codex -h (#5356)
Set clap usage override so help lists subcommands before the prompt argument.
1 parent 3e071c4 commit 3ed7287

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

codex-rs/cli/src/main.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ use codex_core::config::ConfigOverrides;
4242
// The executable is sometimes invoked via a platform‑specific name like
4343
// `codex-x86_64-unknown-linux-musl`, but the help output should always use
4444
// the generic `codex` command name that users run.
45-
bin_name = "codex"
45+
bin_name = "codex",
46+
override_usage = "codex [OPTIONS] [PROMPT]\n codex [OPTIONS] <COMMAND> [ARGS]"
4647
)]
4748
struct MultitoolCli {
4849
#[clap(flatten)]

0 commit comments

Comments
 (0)