Skip to main content
Deno 2 is finally here 🎉️
Learn more
Latest
type alias Cliffy.IVersionHandler
Re-export
import { type Cliffy } from "https://deno.land/x/dmm@v2.1.2/tests/integration/up-to-date-deps/original_deps.ts";
const { IVersionHandler } = Cliffy;

Version callback method to print the version. Invoked by the --help option command and the .getVersion() and .showHelp() method's.

Type Parameters

optional
O extends Record<string, any> | void = any
optional
A extends Array<unknown> = any
optional
G extends Record<string, any> | void = any
optional
PG extends Record<string, any> | void = any
optional
P extends Command | undefined = any
optional
C extends Command<O, A, G, PG, P> = Command<O, A, G, PG, P>
definition: (this: C, cmd: C) => string