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

x/alloy_folk/deps.ts>cliffy.Command#globalOption

An application installer for restriced macOS
Go to Latest
method cliffy.Command.prototype.globalOption
Re-export
import { cliffy } from "https://deno.land/x/alloy_folk@v1.1.1/deps.ts";
const { Command } = cliffy;

Type Parameters

F extends string
G extends TypedOption<F, CO, Merge<CPT, Merge<CGT, CT>>, R, D>
MG extends MapValue<G, V, C>
optional
R extends ICommandOption["required"] = undefined
optional
C extends ICommandOption["collect"] = undefined
optional
D = undefined
optional
V = undefined

Parameters

flags: F
desc: string
optional
opts: Omit<ICommandGlobalOption<Partial<CO>, CA, MergeOptions<F, CG, G>, CPG, CT, CGT, CPT, CP>, "value"> & { default?: IDefaultValue<D>; required?: R; collect?: C; value?: IFlagValueHandler<MapTypes<ValueOf<G>>, V>; } | IFlagValueHandler<MapTypes<ValueOf<G>>, V>

Returns

Command<CPG, CPT, CO, CA, MergeOptions<F, CG, MG>, CT, CGT, CP>