From dd330646d2e72e7a75f6e634da1bf55624708ee5 Mon Sep 17 00:00:00 2001 From: narenoai Date: Tue, 22 Apr 2025 09:28:21 -0700 Subject: [PATCH] =?UTF-8?q?feat:=20add=20CLI=20=E2=80=93version=20flag=20(?= =?UTF-8?q?#492)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Adds a new flag to cli `--version` that prints the current version and exits --------- Co-authored-by: Thibault Sottiaux --- codex-cli/src/cli.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/codex-cli/src/cli.tsx b/codex-cli/src/cli.tsx index 0bed07bf..6220128f 100644 --- a/codex-cli/src/cli.tsx +++ b/codex-cli/src/cli.tsx @@ -52,6 +52,8 @@ const cli = meow( $ codex completion Options + --version Print version and exit + -h, --help Show usage and exit -m, --model Model to use for completions (default: o4-mini) -p, --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"] },