import { Command } from "https://deno.land/x/cliffy@v0.24.0/command/command.ts";
Add a new option.
Type Parameters
optional
R extends ICommandOption["required"] = undefinedoptional
C extends ICommandOption["collect"] = undefinedParameters
flags: F
Flags string e.g: -h, --help, --manual requiredArg:string [optionalArg:number] [...restArgs:string]
opts: Omit<ICommandOption<Partial<CO>, CA, MergeOptions<F, CG, G>, CPG, CT, CGT, CPT, CP>, "value"> & { global: true; default?: IDefaultValue<D>; required?: R; collect?: C; value?: IFlagValueHandler<MapTypes<ValueOf<G>>, V>; } | IFlagValueHandler<MapTypes<ValueOf<G>>, V>
Flag options or custom handler for processing flag value.
Type Parameters
optional
R extends ICommandOption["required"] = undefinedoptional
C extends ICommandOption["collect"] = undefinedParameters
flags: F
optional
opts: Omit<ICommandOption<MergeOptions<F, CO, O>, CA, CG, CPG, CT, CGT, CPT, CP>, "value"> & { default?: IDefaultValue<D>; required?: R; collect?: C; value?: IFlagValueHandler<MapTypes<ValueOf<O>>, V>; } | IFlagValueHandler<MapTypes<ValueOf<O>>, V>