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

x/args/index.ts>flags.Option

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

Declare an option, including:

  • A flag
  • A value right after the flag

type

<Name extends string, Value>(name: Name, descriptor: OptionDescriptor<Value>) => FlagType<Name, Value>