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

x/ndeno/src/deps.ts>Command#parse

Command line tool created by deno to manage node projects | deno 实现的 node 项目包管理命令工具
Go to Latest
method Command.prototype.parse
Re-export
import { Command } from "https://deno.land/x/ndeno@v1.3.1/src/deps.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>>