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

x/cliffy/flags/types.ts>ParseFlagsContext

Command line framework for deno 🦕 Including Commandline-Interfaces, Prompts, CLI-Table, Arguments Parser and more...
Extremely Popular
Go to Latest
interface ParseFlagsContext
import { type ParseFlagsContext } from "https://deno.land/x/cliffy@v1.0.0-rc.1/flags/types.ts";

Parse result. The parse context will be returned by the parseFlags method and can be also passed as first argument to the parseFlags method.

Type Parameters

optional
TFlags extends Record<string, any> = Record<string, any>
optional
TStandaloneOption extends FlagOptions = FlagOptions

Properties

flags: TFlags

An object of parsed flags.

unknown: Array<string>

An array of unknown arguments.

literal: Array<string>

An array of arguments defined after the double dash --.

optional
standalone: TStandaloneOption

Matched standalone option.

stopEarly: boolean

Is set to true if stopEarly option is enabled.

stopOnUnknown: boolean

Is set to true if stopOnUnknown option is enabled.

defaults: Record<string, boolean>

A map of option names and default values.