Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/args/index.ts>flags.DrainOption

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

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