Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/cliffy/command/command.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
import { Command } from "https://deno.land/x/cliffy@v0.19.0/command/command.ts";

Parse command line arguments and execute matched command.

Parameters

optional
args: string[] = [UNSUPPORTED]

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

optional
dry: boolean

Execute command after parsed.

Returns

Promise<IParseResult<CO, CA, CG, PG, P>>