Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/cliffy/packages/flags/mod.ts>validateFlags

Command line framework for deno 🦕 Including Commandline-Interfaces, Prompts, CLI-Table, Arguments Parser and more...
Extremely Popular
Go to Latest
function validateFlags
Re-export
import { validateFlags } from "https://deno.land/x/cliffy@v0.9.0/packages/flags/mod.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).