Skip to content

armgit / codex

Public Imported from GitHub
0

Lightweight coding agent that runs in your terminal

Rust

Fix misleading codex exec help usage (#16881)

Eric Trautd9b899309dbb
diff --git a/codex-rs/exec/src/cli.rs b/codex-rs/exec/src/cli.rs
index 9e37769f15..22c53da1ae 100644
--- a/codex-rs/exec/src/cli.rs
+++ b/codex-rs/exec/src/cli.rs
@@ -6,7 +6,10 @@ use codex_utils_cli::CliConfigOverrides;
use std::path::PathBuf;
#[derive(Parser, Debug)]
-#[command(version)]
+#[command(
+ version,
+ override_usage = "codex exec [OPTIONS] [PROMPT]\n codex exec [OPTIONS] <COMMAND> [ARGS]"
+)]
pub struct Cli {
/// Action to perform. If omitted, runs a new non-interactive session.
#[command(subcommand)]