Skip to content

Commit 2b0d1e9

Browse files
committed
Add --version command line flag
1 parent 3229a8e commit 2b0d1e9

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/index.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@ import {createJsonStream} from "./StdUtils";
77
import {isCodexAuthRequest} from "./CodexAuthMethod";
88
import {CodexAcpClient} from "./CodexAcpClient";
99
import {CodexAppServerClient} from "./CodexAppServerClient";
10+
import packageJson from "../package.json";
11+
12+
if (process.argv.includes("--version")) {
13+
console.log(`${packageJson.name} ${packageJson.version}`);
14+
process.exit(0);
15+
}
1016

1117
const codexPath = process.env["CODEX_PATH"] ?? "codex";
1218
const logPath = process.env["APP_SERVER_LOGS"];

0 commit comments

Comments
 (0)