Skip to content

armgit / codex

Public Imported from GitHub
0

Lightweight coding agent that runs in your terminal

Rust

feat: add CLI –version flag (#492)

narenoaidd330646d2e7
diff --git a/codex-cli/src/cli.tsx b/codex-cli/src/cli.tsx
index 0bed07bf52..6220128f8d 100644
--- a/codex-cli/src/cli.tsx
+++ b/codex-cli/src/cli.tsx
@@ -52,6 +52,8 @@ const cli = meow(
$ codex completion <bash|zsh|fish>
Options
+ --version Print version and exit
+
-h, --help Show usage and exit
-m, --model <model> Model to use for completions (default: o4-mini)
-p, --provider <provider> Provider to use for completions (default: openai)
@@ -97,6 +99,7 @@ const cli = meow(
flags: {
// misc
help: { type: "boolean", aliases: ["h"] },
+ version: { type: "boolean", description: "Print version and exit" },
view: { type: "string" },
model: { type: "string", aliases: ["m"] },
provider: { type: "string", aliases: ["p"] },