Skip to main content
Module

x/cliffy/command/command.ts>Command#arguments

Command line framework for deno 🦕 Including Commandline-Interfaces, Prompts, CLI-Table, Arguments Parser and more...
Extremely Popular
Latest
method Command.prototype.arguments
import { Command } from "https://deno.land/x/cliffy@v1.0.0-rc.4/command/command.ts";

Set command arguments.

Syntax: <requiredArg:string> [optionalArg: number] [...restArgs:string]

Type Parameters

TArguments extends TypedArguments<TArgs, Merge<TParentCommandTypes, Merge<TCommandGlobalTypes, TCommandTypes>>>
optional
TArgs extends string = string

Returns

Command<TParentCommandGlobals, TParentCommandTypes, TCommandOptions, TArguments, TCommandGlobals, TCommandTypes, TCommandGlobalTypes, TParentCommand>