Module

x/cliffy/flags/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.22.2/flags/validate_flags.ts";

Flags post validation. Validations that are not already done by the parser.

Parameters

flags: IFlagOptions[]

Available flag options.

values: Record<string, unknown>

Flag to validate.

optional
_knownFlaks: Record<string, unknown>

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.

optional
optionNames: Record<string, string> = [UNSUPPORTED]

Mapped option names of negatable options.