Module

x/cliffy/mod.ts>Command#option

Command line framework for deno 🦕 Including Commandline-Interfaces, Prompts, CLI-Table, Arguments Parser and more...
Extremely Popular
Go to Latest
method Command.prototype.option
import { Command } from "https://dotland.deno.dev/x/cliffy@v0.11.1/mod.ts";

Add new option (flag).

Parameters

flags: string

Flags string like: -h, --help, --manual requiredArg:string [optionalArg: number] [...restArgs:string]

desc: string

Flag description.

Flag options or custom handler for processing flag value.