version
This commit is contained in:
parent
7f36682b04
commit
a9d9ba82f8
1 changed files with 8 additions and 0 deletions
8
main.ts
8
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",
|
||||
|
|
Loading…
Add table
Reference in a new issue