From 9241fe5504a4d011db07b8bf5fc0d48d3e62f0d9 Mon Sep 17 00:00:00 2001 From: Michael Bolin Date: Wed, 9 Jul 2025 13:53:21 -0700 Subject: [PATCH] fix: the `completion` subcommand should assume the CLI is named `codex`, not `codex-cli` --- codex-rs/cli/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/codex-rs/cli/src/main.rs b/codex-rs/cli/src/main.rs index 51a089d4b9..153af99fce 100644 --- a/codex-rs/cli/src/main.rs +++ b/codex-rs/cli/src/main.rs @@ -155,6 +155,6 @@ fn prepend_config_flags( fn print_completion(cmd: CompletionCommand) { let mut app = MultitoolCli::command(); - let name = app.get_name().to_string(); + let name = "codex"; generate(cmd.shell, &mut app, name, &mut std::io::stdout()); }