Skip to main content
Module

x/cliffy/command/mod.ts>Command#parse

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

Parse command line arguments and execute matched command.

Parameters

optional
args: string[] = [UNSUPPORTED]

Command line args to parse. Ex: cmd.parse( Deno.args )

Returns

Promise<TParentCommand extends Command<any> ? CommandResult<Record<string, unknown>, Array<unknown>, Record<string, unknown>, Record<string, unknown>, Record<string, unknown>, Record<string, unknown>, Record<string, unknown>, undefined> : CommandResult<MapTypes<TCommandOptions>, MapTypes<TCommandArguments>, MapTypes<TCommandGlobals>, MapTypes<TParentCommandGlobals>, TCommandTypes, TCommandGlobalTypes, TParentCommandTypes, TParentCommand>>