Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/feomasto/priv/deps.ts>args.DrainOption

Sync posts from Mastodon into FeoBlog
Go to Latest
variable args.DrainOption
import { args } from "https://deno.land/x/feomasto@v0.1.0/priv/deps.ts";
const { DrainOption } = args;

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