This commit is contained in:
Nebel 2023-12-03 00:53:57 +09:00
parent 7f36682b04
commit a9d9ba82f8
Signed by: nebel
GPG key ID: 79807D08C6EF6460

View file

@ -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",