From d736f7cfc847c172a1fe8b4a4e515a07185c534a Mon Sep 17 00:00:00 2001 From: Jacek Fiszer Date: Sun, 17 Nov 2024 16:50:43 +0100 Subject: [PATCH] feat(cli): add `-V, --version` option --- cli.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cli.ts b/cli.ts index 84fd738..2c74298 100644 --- a/cli.ts +++ b/cli.ts @@ -1,3 +1,4 @@ +import pdfrex from "./deno.json" with { type: "json" }; import { expandGlobSync } from "@std/fs"; import { join } from "@std/path"; import { Command } from "@cliffy/command"; @@ -18,6 +19,7 @@ type Options = { export function main() { new Command() .name("pdfrex") + .version(pdfrex.version).meta("deno", Deno.version.deno) .description(`Command line tool to merge or split pdf files`) .action(function () { this.showHelp();