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

x/cliffy/flags/mod.ts

Command line framework for deno 🦕 Including Commandline-Interfaces, Prompts, CLI-Table, Arguments Parser and more...
Extremely Popular
Go to Latest
import * as cliffy from "https://deno.land/x/cliffy@v0.25.3/flags/mod.ts";

Classes

A validation error is thrown when the command is wrongly used by the user. For example: If the user passes some invalid options or arguments to the command.

Enums

E
OptionType
deprecated

Variables

Boolean type handler. Excepts true, false, 1, 0

Integer type handler. Excepts any integer value.

Number type handler. Excepts any numeric value.

String type handler. Excepts any value.

Functions

Parse command line arguments.

Interfaces

Flag argument definition.

Type details.

Flag options.

Result of the parseFlags method.

Parser options.

Type Aliases

Available build-in argument types.

Default flag value

T
IDefaultValue
deprecated
T
IFlagArgument
deprecated
T
IFlagOptions
deprecated
T
IFlagsResult
deprecated
T
IParseOptions
deprecated
T
ITypeHandler
deprecated
T
ITypeInfo
deprecated

Custom type handler/parser.

Value handler for custom value processing.