Module

x/cliffy/command/command.ts>Command#versionOption

Command line framework for deno 🦕 Including Commandline-Interfaces, Prompts, CLI-Table, Arguments Parser and more...
Extremely Popular
Go to Latest
method Command.prototype.versionOption
import { Command } from "https://dotland.deno.dev/x/cliffy@v0.19.2/command/command.ts";

Disable version option.

Parameters

enable: false

Set global version option.

Parameters

flags: string

The flags of the version option.

optional
desc: string

The description of the version option.

optional
opts: ICommandOption<Partial<CO>, CA, CG, PG, P> & { global: true; }

Version option options.

Set version option.

Parameters

flags: string

The flags of the version option.

optional
desc: string

The description of the version option.

optional
opts: ICommandOption<CO, CA, CG, PG, P>

Version option options.

Set version option.

Parameters

flags: string

The flags of the version option.

optional
desc: string

The description of the version option.

optional
opts: IAction<CO, CA, CG, PG, P>

The action of the version option.