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:
committed by
GitHub
parent
3e071c4c95
commit
3ed728790b
@@ -42,7 +42,8 @@ use codex_core::config::ConfigOverrides;
|
|||||||
// The executable is sometimes invoked via a platform‑specific name like
|
// The executable is sometimes invoked via a platform‑specific name like
|
||||||
// `codex-x86_64-unknown-linux-musl`, but the help output should always use
|
// `codex-x86_64-unknown-linux-musl`, but the help output should always use
|
||||||
// the generic `codex` command name that users run.
|
// 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 {
|
struct MultitoolCli {
|
||||||
#[clap(flatten)]
|
#[clap(flatten)]
|
||||||
|
|||||||
Reference in New Issue
Block a user