Skip to main content
Module

x/flags/mod.ts>FlagBase

Command line argument parser for deno and node.js
Latest
class FlagBase
implements FlagDefine<T>
import { FlagBase } from "https://deno.land/x/flags@0.0.3/mod.ts";

A base class provides some common methods for the class flag

Constructors

new
FlagBase(opts: FlagOptions<T>)

Properties

protected
value_: T
readonly
default: T
readonly
name: string
readonly
short: string
readonly
usage: string
readonly
value: T
readonly
values: Array<T> | undefined

Methods

private
_equal(l: T, r: T): boolean
add(_?: string): boolean
defaultString(): string
isBool(): boolean
isValid(v: T): boolean
reset(): void
valuesString(): string