Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/powar/deps.ts>cliffy.Command#arguments

A simple but powerful TypeScript-based dot-file manager.
Go to Latest
method cliffy.Command.prototype.arguments
Re-export
import { cliffy } from "https://deno.land/x/powar@1.0.1/deps.ts";
const { Command } = cliffy;

Set command arguments:

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>