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.11.1/packages/flags/lib/validate-flags.ts";

Validate flags.

Parameters

flags: IFlagOptions[]

Available flag options.

values: IFlags

Flag to validate.

optional
knownFlaks: IFlags

Values marked as default value.

optional
allowEmpty: boolean

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