Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Latest
method Cliffy.Command.prototype.hasCommand
Re-export
import { Cliffy } from "https://deno.land/x/dmm@v2.1.2/tests/integration/up-to-date-deps/deps.ts";
const { Command } = Cliffy;

Checks whether a child command exists by given name or alias.

Parameters

name: string

Name or alias of the command.

optional
hidden: boolean

Include hidden commands.

Returns

boolean