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

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

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

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>>