Skip to content

armgit / codex

Public Imported from GitHub
0

Lightweight coding agent that runs in your terminal

Rust

fix: the `completion` subcommand should assume the CLI is named `codex`, not `codex-cli` (#1496)

Michael Bolin268267b59e9c
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());
}