Skip to content

Yurba.js / yurba.js / CommandOption

Interface: CommandOption

Represents a single option for a command.

Example

ts
{
 *   name: "verbose",
 *   type: "boolean",
 *   required: false,
 *   description: "Enable verbose output",
 *   default: false
 * }

Properties

default?

optional default: any


description

description: string


name

name: string


required

required: boolean


rest?

optional rest: boolean


type

type: OptionType