Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/line/src/command.ts>Command#option

A class-based, command-line interface (CLI) framework.
Latest
method Command.prototype.option
import { Command } from "https://deno.land/x/line@v1.0.1/src/command.ts";

Get the value of the specified option.

Parameters

optionName: string
  • The option in question.

Returns

string | boolean | undefined

The value of the option in the command line or undefined if the option does not exist.