Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/cmd/commander/index.ts>Option#is

Commander.js (command-line interfaces) for Deno.
Latest
method Option.prototype.is
import { Option } from "https://deno.land/x/cmd@v1.2.0/commander/index.ts";

Check if arg matches the short or long flag.

Parameters

optional
arg: string