Skip to main content
Module

x/nessie/deps.ts>CliffyCommand#hasOption

A modular Deno library for PostgreSQL, MySQL, MariaDB and SQLite migrations
Go to Latest
method CliffyCommand.prototype.hasOption
Re-export
import { CliffyCommand } from "https://deno.land/x/nessie@2.0.7/deps.ts";

Checks whether the command has an option with given name or not.

Parameters

name: string

Name of the option. Must be in param-case.

optional
hidden: boolean

Include hidden options.

Returns

boolean