Skip to main content
Module

x/args/index.ts>Command

Extensible CLI arguments parser for Deno with intelligent TypeScript inference
Latest
interface Command
import { type Command } from "https://deno.land/x/args@2.1.1/index.ts";

Interface of a command parser

Type Parameters

Return extends CommandReturn<any, any, any>

Type of parsing result

ErrList extends readonly ParseError[]

Possible types of list of errors

Methods

extract(args: readonly ArgvItem[]): Return | ParseFailure<ErrList>

Convert a list of classified arguments to parsing result

describe(): Iterable<string>

Describe the command in --help

help(cmdPath: readonly string[]): Iterable<CommandHelp>

All components to construct help message so far