Skip to main content
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
Re-export
import { Command } from "https://deno.land/x/cliffy@v0.15.0/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.