Skip to main content
Module

x/mod/deps.ts>Command#getOption

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

Get option by name.

Parameters

name: string

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

optional
hidden: boolean

Include hidden options.

Returns

IOption | undefined