Skip to main content
Module

x/lume/deps/cliffy.ts>Command#versionOption

🔥 Static site generator for Deno 🦕
Very Popular
Go to Latest
method Command.prototype.versionOption
Re-export
import { Command } from "https://deno.land/x/lume@v1.15.2/deps/cliffy.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: OptionOptions<Partial<TCommandOptions>, TCommandArguments, TCommandGlobals, TParentCommandGlobals, TCommandTypes, TCommandGlobalTypes, TParentCommandTypes, TParentCommand> & { 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: OptionOptions<TCommandOptions, TCommandArguments, TCommandGlobals, TParentCommandGlobals, TCommandTypes, TCommandGlobalTypes, TParentCommandTypes, TParentCommand>

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: ActionHandler<TCommandOptions, TCommandArguments, TCommandGlobals, TParentCommandGlobals, TCommandTypes, TCommandGlobalTypes, TParentCommandTypes, TParentCommand>

The action of the version option.