Skip to main content
Module

x/enzastdlib/commands/flags.ts>collectFlags

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 collectFlags
import { collectFlags } from "https://deno.land/x/enzastdlib@v0.0.4/commands/flags.ts";

Processes the value of Deno.args by associating any string value that immediately comes after a string prefixed by -- in a record.

Otherwise all unassociated string values are collected in the _ key in the record.

Parameters

args: string[]

Returns

FlagsRecord