Module

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

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

Type Parameters

optional
G extends Record<string, unknown> | void = CG

Parameters

flags: string
desc: string
optional
opts: Omit<ICommandOption<Partial<CO>, CA, Merge<CG, MapOptionTypes<G>>, PG, P>, "global"> | IFlagValueHandler

Returns

Command<CO, CA, Merge<CG, MapOptionTypes<G>>, PG, P>