Skip to content

Commit

Permalink
feat(cli): add -V, --version option
Browse files Browse the repository at this point in the history
  • Loading branch information
jackfiszr committed Nov 17, 2024
1 parent d3aa950 commit 06e0041
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cli.ts
Original file line number Diff line number Diff line change
@@ -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";
Expand All @@ -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();
Expand Down

0 comments on commit 06e0041

Please sign in to comment.