From a9d9ba82f8d3d8d0413c7b4c0e6f86b050cc088d Mon Sep 17 00:00:00 2001 From: Kohei Watanabe Date: Sun, 3 Dec 2023 00:53:57 +0900 Subject: [PATCH] version --- main.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/main.ts b/main.ts index 76238a8..f15d5d0 100644 --- a/main.ts +++ b/main.ts @@ -3,6 +3,7 @@ import { createBrowser } from "./browser"; import { createDatabase } from "./database"; import { type Book, createLibrary } from "./library"; import { type TPlatform, createPlatform } from "./platform"; +import * as pkg from "./package.json"; const options = { db: { @@ -156,6 +157,13 @@ const options = { json: { type: "boolean", }, + version: { + type: "boolean", + short: "v", + run() { + console.log(pkg.version); + }, + }, help: { type: "boolean", short: "h",