import { type FlagOptions } from "https://deno.land/x/cliffy@v1.0.0-rc.2/flags/mod.ts";
Flag options.
Properties
optional
args: Array<ArgumentOptions>An array of argument options.
optional
default: DefaultValueDefault value.
An array of required flags that needs to be called together with this flag. If one of the flags is missing, an error will be thrown.
An array of conflicting flags that cannot be called together with this flag. If one of the flags is used together with this flag, an error will be thrown.
optional
value: ValueHandlerA callback function to map the flag value(s). The first argument if the
callback function is the current value, and the second argument is an array
of previous values when combined with the collect
option.
If enabled, the flag can be used multiple times and all values will be collected into an array.