Skip to content

Commit b16c985

Browse files
authored
cli: fix zsh completion (#4692)
Before this change: ``` tamird@L03G26TD12 codex-rs % codex zsh: do you wish to see all 3864 possibilities (1285 lines)? ``` After this change: ``` tamird@L03G26TD12 codex-rs % codex app-server -- [experimental] Run the app server apply a -- Apply the latest diff produced by Codex agent as a `git apply` to your local working tree cloud -- [EXPERIMENTAL] Browse tasks from Codex Cloud and apply changes locally completion -- Generate shell completion scripts debug -- Internal debugging commands exec e -- Run Codex non-interactively generate-ts -- Internal: generate TypeScript protocol bindings help -- Print this message or the help of the given subcommand(s) login -- Manage login logout -- Remove stored authentication credentials mcp -- [experimental] Run Codex as an MCP server and manage MCP servers mcp-server -- [experimental] Run the Codex MCP server (stdio transport) responses-api-proxy -- Internal: run the responses API proxy resume -- Resume a previous interactive session (picker by default; use --last to continue the most recent) ```
1 parent 35a770e commit b16c985

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

codex-rs/exec/src/cli.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ pub struct Cli {
7777

7878
/// Initial instructions for the agent. If not provided as an argument (or
7979
/// if `-` is used), instructions are read from stdin.
80-
#[arg(value_name = "PROMPT")]
80+
#[arg(value_name = "PROMPT", value_hint = clap::ValueHint::Other)]
8181
pub prompt: Option<String>,
8282
}
8383

@@ -99,7 +99,7 @@ pub struct ResumeArgs {
9999
pub last: bool,
100100

101101
/// Prompt to send after resuming the session. If `-` is used, read from stdin.
102-
#[arg(value_name = "PROMPT")]
102+
#[arg(value_name = "PROMPT", value_hint = clap::ValueHint::Other)]
103103
pub prompt: Option<String>,
104104
}
105105

codex-rs/tui/src/cli.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use std::path::PathBuf;
77
#[command(version)]
88
pub struct Cli {
99
/// Optional user prompt to start the session.
10-
#[arg(value_name = "PROMPT")]
10+
#[arg(value_name = "PROMPT", value_hint = clap::ValueHint::Other)]
1111
pub prompt: Option<String>,
1212

1313
/// Optional image(s) to attach to the initial prompt.

0 commit comments

Comments
 (0)