Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/cliffy/mod.ts>BaseCommand#error

Command line framework for deno 🦕 Including Commandline-Interfaces, Prompts, CLI-Table, Arguments Parser and more...
Extremely Popular
Go to Latest
method BaseCommand.prototype.error
Re-export
import { BaseCommand } from "https://deno.land/x/cliffy@v0.7.0/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