Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/feomasto/priv/deps.ts>args.FlagType

Sync posts from Mastodon into FeoBlog
Go to Latest
interface args.FlagType
Re-export
import { type args } from "https://deno.land/x/feomasto@v0.1.0/priv/deps.ts";
const { FlagType } = args;

Interface of a flag type

Type Parameters

Name extends string

Type of flag's name, preferably literal

Value

Type of flag's value

Properties

readonly
name: Name

Flag name

readonly
[[Symbol.toStringTag]]: string

Class name

Methods

extract(args: readonly ArgvItem[]): Result<{ value: Value; consumedFlags: ReadonlySet<ArgvItem>; }, FlagError>

Extract value from a list of arguments

help(): FlagHelp

Create a FlagHelp to display in help::help() or wrapper::help()