Skip to main content
Module

x/args/index.ts>DrainOption

Extensible CLI arguments parser for Deno with intelligent TypeScript inference
Latest
variable DrainOption
import { DrainOption } from "https://deno.land/x/args@2.1.1/index.ts";

Declare an option that drains all arguments after the flag

CLI example: --opt abc def ghi['abc', 'def', 'ghi']

type

<Name extends string, Value>(name: Name, descriptor: DrainOptionDescriptor<Value>) => FlagType<Name, Value[]>