Module

std/flags/mod.ts>parse

Deno standard library
Go to Latest
function parse
import { parse } from "https://dotland.deno.dev/std@0.110.0/flags/mod.ts";

Take a set of command line arguments, with an optional set of options, and return an object representation of those argument.

     import { parse } from "./mod.ts";
     const parsedArgs = parse(Deno.args);

Parameters

args: string[]
optional
unnamed 1: ArgParsingOptions = [UNSUPPORTED]