Module

x/cliffy/packages/flags/lib/validate-flags.ts>validateFlags

Command line framework for deno 🦕 Including Commandline-Interfaces, Prompts, CLI-Table, Arguments Parser and more...
Extremely Popular
Go to Latest
function validateFlags
import { validateFlags } from "https://dotland.deno.dev/x/cliffy@v0.6.1/packages/flags/lib/validate-flags.ts";

Validate flags.

Parameters

flags: IFlagOptions[]

Available flag options.

values: IFlags

Flag to validate.

optional
defaultValues: IGenericObject<boolean> = [UNSUPPORTED]

Values marked as default value.

optional
knownFlaks: IFlags

Don't throw an error if a missing flag is defined in knownFlags (currently not implemented).

optional
allowEmpty: boolean

Don't throw an error if values is empty.