Module

x/wmill/deps.ts>Command#versionOption

Open-source developer platform to turn scripts into workflows and UIs. Fastest workflow engine (5x vs Airflow). Open-source alternative to Airplane and Retool.
Go to Latest
method Command.prototype.versionOption
import { Command } from "https://dotland.deno.dev/x/wmill@v1.346.2/deps.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.