Skip to main content
Module

x/enzastdlib/commands/flags.ts>extractCommand

enzastdlib is a set of TypeScript modules that follow a common design API philosophy aiming at sane defaults and ease-of-use targeting the Deno TypeScript runtime.
Latest
function extractCommand
import { extractCommand } from "https://deno.land/x/enzastdlib@v0.0.4/commands/flags.ts";

Processes the value of Deno.args by finding the first danging string value not immediated preceded by a string value prefixed --.

Parameters

args: string[]

Returns

{ args: string[]; command?: string; }