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

x/habitra/deps.ts>Command#allowEmpty

Command line tool for HabiTra
Latest
method Command.prototype.allowEmpty
Re-export
import { Command } from "https://deno.land/x/habitra@v0.3.0/deps.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>