Skip to main content
Module

x/mod/deps.ts>Command#hasOption

Simple Command Line Interface to create Deno module entrypoints, CI, config and more.
Latest
method Command.prototype.hasOption
Re-export
import { Command } from "https://deno.land/x/mod@v2.3.9/deps.ts";

Checks whether the command has an option with given name or not.

Parameters

name: string

Name of the option. Must be in param-case.

optional
hidden: boolean

Include hidden options.

Returns

boolean