Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/opinecli/deps.ts>Command#globalOption

Opine's application generator
Latest
method Command.prototype.globalOption
Re-export
import { Command } from "https://deno.land/x/opinecli@2.0.0/deps.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>