Module

x/cliffy/mod.ts>Command#error

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

Handle error. If .throwErrors() was called all error's will be thrown, otherwise Deno.exit(1) will be called.

Parameters

error: Error

Error to handle.

optional
showHelp: boolean = [UNSUPPORTED]

Show help.

Returns

Error