Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/args/utils.ts>flag

Extensible CLI arguments parser for Deno with intelligent TypeScript inference
Go to Latest
function flag
import { flag } from "https://deno.land/x/args@2.0.7/utils.ts";

Convert a flag name to a flag argument

Parameters

name: string | readonly string[]

Flag name