Skip to main content
Module

x/args/index.ts>flags.Option

Extensible CLI arguments parser for Deno with intelligent TypeScript inference
Go to Latest
variable flags.Option
import { flags } from "https://deno.land/x/args@2.1.0/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>