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

x/cliffy/packages/command/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
Re-export
import { Command } from "https://deno.land/x/cliffy@0.12.1/packages/command/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