From 3ed728790ba711440bd81626c816148b787ce2c9 Mon Sep 17 00:00:00 2001 From: Thibault Sottiaux Date: Sun, 19 Oct 2025 16:17:51 -0700 Subject: [PATCH] fix: update CLI usage order for codex -h (#5356) Set clap usage override so help lists subcommands before the prompt argument. --- codex-rs/cli/src/main.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/codex-rs/cli/src/main.rs b/codex-rs/cli/src/main.rs index e01bd259..30f7a91b 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] [ARGS]" )] struct MultitoolCli { #[clap(flatten)]