Skip to main content
Module

x/cliffy/mod.ts>Command#allowEmpty

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

Don't throw an error if the command was called without arguments.

Type Parameters

optional
T extends boolean | undefined = undefined

Parameters

optional
allowEmpty: T

Enable/disable allow empty.

Returns

false extends T ? this : Command<Partial<CPG>, CPT, Partial<CO>, CA, CG, CT, CGT, CP>