Skip to main content
Module

x/args/flag-types.ts>CollectOption

Extensible CLI arguments parser for Deno with intelligent TypeScript inference
Go to Latest
variable CollectOption
import { CollectOption } from "https://deno.land/x/args@2.1.0/flag-types.ts";

Declare an option that collects value after flags

CLI example: --opt foo --opt bar --opt baz["foo", "bar", "baz"]

type

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