Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/habitra/deps.ts>Command#versionOption

Command line tool for HabiTra
Latest
method Command.prototype.versionOption
Re-export
import { Command } from "https://deno.land/x/habitra@v0.3.0/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: ICommandOption<Partial<CO>, CA, CG, CPG, CT, CGT, CPT, CP> & { 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, CPG, CT, CGT, CPT, CP>

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, CPG, CT, CGT, CPT, CP>

The action of the version option.